vector-subscript-1.c (main): Fix __builtin_memcpy arguments to honor sizeof(a).
* gcc.c-torture/execute/vector-subscript-1.c (main): Fix __builtin_memcpy arguments to honor sizeof(a). From-SVN: r181933
This commit is contained in:
parent
5e50b799a0
commit
b3c85d792d
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2011-12-02 Georg-Johann Lay <avr@gjlay.de>
|
||||
|
||||
* gcc.c-torture/execute/vector-subscript-1.c (main): Fix
|
||||
__builtin_memcpy arguments to honor sizeof(a).
|
||||
|
||||
2011-12-02 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* gcc.c-torture/execute/doloop-1.c,
|
||||
|
|
|
@ -49,7 +49,7 @@ int main( int argc, char* argv[] )
|
|||
if (*f(&val3, 3 ) != 4)
|
||||
__builtin_abort ();
|
||||
|
||||
__builtin_memcpy(a, &val3, 16);
|
||||
__builtin_memcpy (a, &val3, sizeof(a));
|
||||
for(i = 0; i < 4; i++)
|
||||
if (a[i] != i+1)
|
||||
__builtin_abort ();
|
||||
|
|
Loading…
Add table
Reference in a new issue