1 // RUN: %clang_cc1 -fsyntax-only -verify %s
6 T y; // expected-error{{data member instantiated with function type}}
8 T bitfield : 12; // expected-error{{bit-field 'bitfield' has non-integral type 'float'}} \
9 // expected-error{{data member instantiated with function type}}
11 mutable T x2; // expected-error{{data member instantiated with function type}}
14 void test1(const X<int> *xi) {
16 const int &i2 = xi->y;
18 int i3 = xi->bitfield;
22 void test2(const X<float> *xf) {
23 (void)xf->x; // expected-note{{in instantiation of template class 'struct X<float>' requested here}}
26 void test3(const X<int(int)> *xf) {
27 (void)xf->x; // expected-note{{in instantiation of template class 'struct X<int (int)>' requested here}}