llvm-project/clang/test/SemaTemplate/member-inclass-init-value-d...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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;