FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.bugs / 900221_01.C
blob92c56fc08adf2c655a57bba7e11f949c0d1fb048
1 // g++ 1.36.1 bug 900221_01
3 // Ref: 3.2
4 //
5 // Section 3.2 of the C++ 2.0 Reference Manual says:
6 //
7 //      "Names of formal arguments for a function are treated as if they
8 //      were declared in the outermost block of that function"
9 //
10 // g++ does not enforce this treatment.
12 // Cfront 2.0 passes this test.
14 // keywords: scope, formal parameters
16 void function (int arg1)
18   int arg1;             // ERROR - redeclaration of arg1
21 int main () { return 0; }