FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.ext / namedret3.C
blob7ea66137276d1d87c930ed9835357227d564b056
1 // Special g++ Options: -Wno-deprecated
3 extern "C" void abort();
5 int f2(int *x)
7   *x = 1;
8   return 2;
11 int f1() return x // ERROR - 
13   f2(&x); // ERROR - 
16 void g()
18   int scratch[100];
19   int i;
20   for (i = 0; i < 100; ++i)
21     scratch[i] = 0;
24 int main()
26   g();
27   if (f1() != 1)
28     abort ();
29   return 0;