llvm-for-llvmta/tools/clang/test/SemaTemplate/value-dependent-bitfield-co...

14 lines
160 B
C++
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -fsyntax-only -verify %s
// expected-no-diagnostics
template <int b>
class A {
int c : b;
public:
void f() {
if (c)
;
}
};