// RUN: %clang_cc1 -pedantic-errors -std=c++11 -emit-pch %s -o %t // RUN: %clang_cc1 -pedantic-errors -std=c++11 -include-pch %t -verify %s #ifndef HEADER_INCLUDED #define HEADER_INCLUDED template int f() noexcept(b) {} decltype(f()) a; decltype(f()) b; #else static_assert(!noexcept(f()), ""); static_assert(noexcept(f()), ""); #endif