xref: /minix3/external/bsd/llvm/dist/clang/test/SemaTemplate/member-inclass-init-value-dependent.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-llvm-only %s
2*f4a2713aSLionel Sambuc // PR10290
3*f4a2713aSLionel Sambuc 
4*f4a2713aSLionel Sambuc template<int Flags> struct foo {
5*f4a2713aSLionel Sambuc   int value = Flags && 0;
6*f4a2713aSLionel Sambuc };
7*f4a2713aSLionel Sambuc 
test()8*f4a2713aSLionel Sambuc void test() {
9*f4a2713aSLionel Sambuc   foo<4> bar;
10*f4a2713aSLionel Sambuc }
11*f4a2713aSLionel Sambuc 
12*f4a2713aSLionel Sambuc struct S {
13*f4a2713aSLionel Sambuc   S(int n);
14*f4a2713aSLionel Sambuc };
15*f4a2713aSLionel Sambuc template<typename> struct T {
16*f4a2713aSLionel Sambuc   S s = 0;
17*f4a2713aSLionel Sambuc };
18*f4a2713aSLionel Sambuc T<int> t;
19