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
4#ifndef HEADER_INCLUDED
5
6#define HEADER_INCLUDED
7
8template<bool b> int f() noexcept(b) {}
9decltype(f<false>()) a;
10decltype(f<true>()) b;
11
12#else
13
14static_assert(!noexcept(f<false>()), "");
15static_assert(noexcept(f<true>()), "");
16
17#endif
18