YouCompleteMe/cpp/llvm/tools/clang/test/SemaTemplate/member-inclass-init-value-dependent.cpp

19 lines
224 B
C++
Raw Normal View History

// RUN: %clang_cc1 -emit-llvm-only %s
// PR10290
template<int Flags> struct foo {
int value = Flags && 0;
};
void test() {
foo<4> bar;
}
struct S {
S(int n);
};
template<typename> struct T {
S s = 0;
};
T<int> t;