blob: 5bff7f2095795b70c06a356894f5da9967493287 [file] [log] [blame]
Nick Lewyckye4f22ad2011-07-07 02:20:13 +00001// RUN: %clang_cc1 -emit-llvm-only %s
2// PR10290
3
4template<int Flags> struct foo {
5 int value = Flags && 0;
6};
7
8void test() {
9 foo<4> bar;
10}
11
Richard Smith0ff6f8f2011-07-20 00:12:52 +000012struct S {
13 S(int n);
14};
15template<typename> struct T {
16 S s = 0;
17};
18T<int> t;