1 // RUN: %clang_cc1 -pedantic-errors -std=c++11 -emit-pch %s -o %t 2 // RUN: %clang_cc1 -pedantic-errors -std=c++11 -include-pch %t -verify %s 3 // expected-no-diagnostics 4 5 #ifndef HEADER_INCLUDED 6 7 #define HEADER_INCLUDED 8 9 template<bool b> int f() noexcept(b) {} 10 decltype(f<false>()) a; 11 decltype(f<true>()) b; 12 13 #else 14 15 static_assert(!noexcept(f<false>()), ""); 16 static_assert(noexcept(f<true>()), ""); 17 18 #endif 19