OSDN Git Service

* gcc.dg/decl-1.c: New test.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / decl-1.c
1 /* Copyright (C) 2002 Free Software Foundation, Inc.
2
3    Source: Neil Booth, 12 Feb 2002.
4
5    In the declaration of proc, x must be parsed as a typedef name
6    (6.7.5.3 p11).  */
7
8 typedef int x;
9 int proc(int (x));      /* x is a typedef, param to proc is a function.  */
10 int proc2(int x);       /* x is an identifier, param is an int.  */
11
12 int main ()
13 {
14   return proc (proc2);          /* { dg-bogus "integer from pointer" } */
15 }