1 // RUN: %clang_cc1 -pedantic-errors -std=c++11 -emit-pch %s -o %t.1
2 // RUN: %clang_cc1 -pedantic-errors -std=c++11 -include-pch %t.1 -emit-pch %s -o %t.2
3 // RUN: %clang_cc1 -pedantic-errors -std=c++11 -include-pch %t.2 -verify %s
4 // RUN: %clang_cc1 -pedantic-errors -std=c++11 -include-pch %t.2 -emit-llvm-only %s
6 // RUN: %clang_cc1 -pedantic-errors -std=c++11 -emit-pch -fpch-instantiate-templates %s -o %t.1
7 // RUN: %clang_cc1 -pedantic-errors -std=c++11 -include-pch %t.1 -emit-pch -fpch-instantiate-templates %s -o %t.2
8 // RUN: %clang_cc1 -pedantic-errors -std=c++11 -include-pch %t.2 -verify %s
9 // RUN: %clang_cc1 -pedantic-errors -std=c++11 -include-pch %t.2 -emit-llvm-only %s
11 // expected-no-diagnostics
16 template<int n
> int f() noexcept(n
% 2) { return 0; }
17 template<int n
> int g() noexcept(n
% 2);
33 #elif !defined(PHASE2_DONE)
44 A::A(const A
&) = default;
50 static_assert(!noexcept(f
<0>()), "");
51 static_assert(noexcept(f
<1>()), "");