* gcc.c-torture/execute/990130-1.c: New test.
From-SVN: r24925
This commit is contained in:
parent
3ad13ada51
commit
4833c8bf19
@ -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.
|
||||
|
23
gcc/testsuite/gcc.c-torture/execute/990130-1.c
Normal file
23
gcc/testsuite/gcc.c-torture/execute/990130-1.c
Normal 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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user