summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/misc8.C
blob: f06393c93b8e7b7f1759f387f6ebc6589a9b553d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-do assemble  }
// GROUPS passed miscellaneous
// used to say invalid lvalue in `&\'
class foo {
        int     a;
    public:
        foo(int a);
};

foo::foo(int a)
{
    foo::a=a;
}

int main()
{
foo     obj(4);
}