c++: Make *_cast<*> parsing more robust to errors [PR108438]
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 980505-1.c
blobe452208eb52fb7836bb940b04cde0bf164bc0c61
1 void abort (void);
2 void exit (int);
4 static int f(int) __attribute__((const));
5 int main()
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);
14 static int f(int x) { return x; }