* gcc.c-torture/execute/990130-1.c: New test.

From-SVN: r24925
This commit is contained in:
Richard Henderson 1999-01-30 08:23:52 -08:00 committed by Richard Henderson
parent 3ad13ada51
commit 4833c8bf19
2 changed files with 27 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Sat Jan 30 16:22:47 1999 Richard Henderson <rth@cygnus.com>
* gcc.c-torture/execute/990130-1.c: New test.
Sat Jan 30 11:10:06 1999 Jeffrey A Law (law@cygnus.com)
* gcc.dg/990130-1.c: New test.

View File

@ -0,0 +1,23 @@
int count = 0;
int dummy;
static int *
bar(void)
{
++count;
return &dummy;
}
static void
foo(void)
{
asm("" : "+r"(*bar()));
}
main()
{
foo();
if (count != 1)
abort();
exit(0);
}