mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-09 02:36:53 +08:00
New test.
From-SVN: r19551
This commit is contained in:
parent
a2b1989b76
commit
7f2ef0e723
11
gcc/testsuite/gcc.c-torture/execute/980505-1.c
Normal file
11
gcc/testsuite/gcc.c-torture/execute/980505-1.c
Normal file
@ -0,0 +1,11 @@
|
||||
static int f(int) __attribute__((const));
|
||||
int main()
|
||||
{
|
||||
int f1, f2, x;
|
||||
x = 1; f1 = f(x);
|
||||
x = 2; f2 = f(x);
|
||||
if (f1 != 1 || f2 != 2)
|
||||
abort ();
|
||||
exit (0);
|
||||
}
|
||||
static int f(int x) { return x; }
|
Loading…
Reference in New Issue
Block a user