2009-03-24 10:24:46 +08:00
|
|
|
// RUN: clang-cc -fsyntax-only %s -verify
|
2008-05-20 17:10:20 +08:00
|
|
|
|
2009-02-28 02:53:28 +08:00
|
|
|
int x(a) int a; {return a;}
|
|
|
|
int y(b) int b; {return a;} // expected-error {{use of undeclared identifier}}
|
2008-05-20 17:10:20 +08:00
|
|
|
|
2008-05-20 20:55:29 +08:00
|
|
|
// PR2332
|
2009-02-28 02:53:28 +08:00
|
|
|
int a(a)int a;{a=10;return a;}
|