1 // RUN: %clang_cc1 -pedantic -std=c++1y -emit-pch %s -o %t
2 // RUN: %clang_cc1 -pedantic -std=c++1y -include-pch %t -verify %s
4 #ifndef HEADER_INCLUDED
6 #define HEADER_INCLUDED
8 template<typename T> void f(T t) {
10 decltype(auto) b = t.x;
12 decltype(auto) d = (t.x);
18 int x : 5; // expected-note {{bit-field}}
21 // expected-error@12 {{non-const reference cannot bind to bit-field 'x'}}
22 template void f(Z); // expected-note {{in instantiation of}}