aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.jason/redecl1.C
blob: 172a441049057c6901513e656efe068195799488 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do assemble  }
class A
{
public:
    A (const A& ccref);
    friend A const re (const A& v1); // { dg-message "old declaration" } 
};

A // const
re (const A& ref) // { dg-error "new declaration" }
{
    return A (ref);
}