* gcc.c-torture/execute/pr56837.c: New test.

From-SVN: r197582
This commit is contained in:
Jakub Jelinek 2013-04-08 15:46:48 +02:00 committed by Jakub Jelinek
parent f223bb1362
commit 1006463067
2 changed files with 23 additions and 0 deletions

View File

@ -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.

View 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;
}