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