instantiate-expr-1.cpp revision a0e500db61f5fcf3ff6de6af1494f0cea9f6f8db
1// RUN: clang -fsyntax-only -verify %s
2
3template<int I, int J>
4struct Bitfields {
5  int simple : I; // expected-error{{bit-field 'simple' has zero width}}
6  int parens : (J);
7};
8
9void test_Bitfields(Bitfields<0, 5> *b) {
10  (void)sizeof(Bitfields<10, 5>);
11  (void)sizeof(Bitfields<0, 1>); // expected-note{{in instantiation of template class 'struct Bitfields<0, 1>' requested here}}
12}
13