| // RUN: %clang_cc1 -pedantic-errors -std=c++11 -emit-pch %s -o %t.1 |
| // RUN: %clang_cc1 -pedantic-errors -std=c++11 -include-pch %t.1 -emit-pch %s -o %t.2 |
| // RUN: %clang_cc1 -pedantic-errors -std=c++11 -include-pch %t.2 -verify %s |
| // RUN: %clang_cc1 -pedantic-errors -std=c++11 -include-pch %t.2 -emit-llvm-only %s |
| // expected-no-diagnostics |
| template<int n> int f() noexcept(n % 2) { return 0; } |
| template<int n> int g() noexcept(n % 2); |
| #elif !defined(PHASE2_DONE) |
| A::A(const A&) = default; |
| static_assert(!noexcept(f<0>()), ""); |
| static_assert(noexcept(f<1>()), ""); |