* gcc.c-torture/execute/pr56837.c: New test.
From-SVN: r197582
This commit is contained in:
parent
f223bb1362
commit
1006463067
@ -1,5 +1,7 @@
|
||||
2013-04-08 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* gcc.c-torture/execute/pr56837.c: New test.
|
||||
|
||||
PR c++/34949
|
||||
PR c++/50243
|
||||
* g++.dg/opt/vt3.C: New test.
|
||||
|
21
gcc/testsuite/gcc.c-torture/execute/pr56837.c
Normal file
21
gcc/testsuite/gcc.c-torture/execute/pr56837.c
Normal file
@ -0,0 +1,21 @@
|
||||
extern void abort (void);
|
||||
_Complex int a[1024];
|
||||
|
||||
__attribute__((noinline, noclone)) void
|
||||
foo (void)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < 1024; i++)
|
||||
a[i] = -1;
|
||||
}
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
int i;
|
||||
foo ();
|
||||
for (i = 0; i < 1024; i++)
|
||||
if (a[i] != -1)
|
||||
abort ();
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user