summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/ctor4.C
blob: 1c92bb973d312d5723743a759fc5eb2703003aed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// PR c++/17788
// { dg-do compile }

class foo {
public:
  foo();
};

class bar: public foo {		// { dg-error "reference|bar::bar" }
private:
  int &a;
};

foo::foo() {
}

int main(int argc, char **argv)
{
  bar x; // { dg-message "synthesized|deleted" }
}