summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/value-dependent-bitfield-cond.cpp
blob: 873e4d48e8374b0d35d459fbe15c48e94fd95a0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %clang_cc1 -fsyntax-only -verify %s
// expected-no-diagnostics

template <int b>
class A {
  int c : b;

public:
  void f() {
    if (c)
      ;
  }
};
OpenPOWER on IntegriCloud