1 // RUN: %clang_cc1 -fsyntax-only -verify %s
4 A() : value(), cvalue() { } // expected-error {{reference to type 'int' requires an initializer}}
13 X() { } // expected-error {{constructor for 'X' must explicitly initialize the reference member 'value'}} \
14 // expected-error {{constructor for 'X' must explicitly initialize the const member 'cvalue'}} \
15 // expected-error {{constructor for 'X' must explicitly initialize the reference member 'b'}} \
16 // expected-error {{constructor for 'X' must explicitly initialize the const member 'cb'}}
17 int &value; // expected-note{{declared at}}
18 const int cvalue; // expected-note{{declared at}}
19 B& b; // expected-note{{declared at}}
20 const B cb; // expected-note{{declared here}}
29 foo_t a; // expected-error {{unknown type name 'foo_t'}}
30 foo() : a(xxx()) {} // no error here.