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
6void f (int i) { }
7
8void (*fp)(void);
9
10int i;
11
12void
13test ()
14{
15   i ? f : fp; // ERROR -
16}
17