aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/redecl3.C
blob: 5987e0e3172744e9cfdcbd5653dec6dafb4aaede (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Build don't link: 
// GROUPS passed redeclaration
class foo
{
public:
    int bar(int a);
};


void bar(int &a);

int foo::bar(int a)  {
    int a = 0;			// Should this be an error ?// ERROR -  declaration.*

    bar(a);
    return 0;
}