llvm-project/clang/test/SemaTemplate/value-dependent-bitfield-co...

14 lines
160 B
C++

// RUN: %clang_cc1 -fsyntax-only -verify %s
// expected-no-diagnostics
template <int b>
class A {
int c : b;
public:
void f() {
if (c)
;
}
};