member-inclass-init-value-dependent.cpp 224 B

123456789101112131415161718
  1. // RUN: %clang_cc1 -emit-llvm-only %s
  2. // PR10290
  3. template<int Flags> struct foo {
  4. int value = Flags && 0;
  5. };
  6. void test() {
  7. foo<4> bar;
  8. }
  9. struct S {
  10. S(int n);
  11. };
  12. template<typename> struct T {
  13. S s = 0;
  14. };
  15. T<int> t;