PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / init / ctor4.C
blob5450fc14acb04c50e7bdf8b9fbf5828fd852e9d9
1 // PR c++/17788
2 // { dg-do compile }
4 class foo {
5 public:
6   foo();
7 };
9 class bar: public foo { // { dg-error "uninitialized" }
10                    // { dg-message "implicitly deleted" "" { target c++11 } .-1 }
11 private:
12   int &a; // { dg-message "should be initialized" }
15 foo::foo() {
18 int main(int argc, char **argv)
20   bar x; // { dg-error "deleted" "" { target c++11 } }
21          // { dg-message "synthesized" "" { target { ! c++11 } } .-1 }