xref: /llvm-project/clang/test/SemaTemplate/instantiate-expr-1.cpp (revision 573c7467df9f793246ff29d300c7ccd5374a400e)
1 // RUN: clang -fsyntax-only -verify %s
2 
3 template<int I, int J>
4 struct Bitfields {
5   int simple : I; // expected-error{{bit-field 'simple' has zero width}}
6   int parens : (J);
7 };
8 
9 void 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