2011-07-17 15:40:56 +00:00
|
|
|
// RUN: %clang_cc1 -emit-llvm-only %s
|
|
|
|
// PR10290
|
|
|
|
|
|
|
|
template<int Flags> struct foo {
|
|
|
|
int value = Flags && 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
void test() {
|
|
|
|
foo<4> bar;
|
|
|
|
}
|
|
|
|
|
2011-10-20 21:14:49 +00:00
|
|
|
struct S {
|
|
|
|
S(int n);
|
|
|
|
};
|
|
|
|
template<typename> struct T {
|
|
|
|
S s = 0;
|
|
|
|
};
|
|
|
|
T<int> t;
|