OSDN Git Service

Initial revision
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.rfg / 00324_02-.C
1 // Another simple one.  GCC corerctly gives errors for this code when the
2 // - -pedantic-errors options is used.  g++ doesn't.
3
4 // Build don't link:
5
6 void f (int i) { }
7  
8 void (*fp)(void);
9  
10 int i;
11  
12 void
13 test ()
14 {
15    i ? f : fp; // ERROR - 
16 }