Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/980505-1.c

raw
1 void abort (void);
2 void exit (int);
3
4 static int f(int) __attribute__((const));
5 int main()
6 {
7 int f1, f2, x;
8 x = 1; f1 = f(x);
9 x = 2; f2 = f(x);
10 if (f1 != 1 || f2 != 2)
11 abort ();
12 exit (0);
13 }
14 static int f(int x) { return x; }