mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-24 11:24:05 +08:00
* gcc.c-torture/execute/20001121-1.c: New test.
From-SVN: r37618
This commit is contained in:
parent
52e12ad06f
commit
ce79b0cace
@ -1,3 +1,7 @@
|
||||
2000-11-21 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* gcc.c-torture/execute/20001121-1.c: New test.
|
||||
|
||||
2000-11-21 Richard Henderson <rth@redhat.com>
|
||||
|
||||
* gcc.c-torture/compile/20001121-1.c: New test.
|
||||
|
19
gcc/testsuite/gcc.c-torture/execute/20001121-1.c
Normal file
19
gcc/testsuite/gcc.c-torture/execute/20001121-1.c
Normal file
@ -0,0 +1,19 @@
|
||||
double d;
|
||||
|
||||
__inline__ double foo (void)
|
||||
{
|
||||
return d;
|
||||
}
|
||||
|
||||
__inline__ int bar (void)
|
||||
{
|
||||
foo();
|
||||
return 0;
|
||||
}
|
||||
|
||||
int main (void)
|
||||
{
|
||||
if (bar ())
|
||||
abort ();
|
||||
exit (0);
|
||||
}
|
Loading…
Reference in New Issue
Block a user