• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
f()8 template<bool b> int f() noexcept(b) {}
9 decltype(f<false>()) a;
10 decltype(f<true>()) b;
11 
12 #else
13 
14 static_assert(!noexcept(f<false>()), "");
15 static_assert(noexcept(f<true>()), "");
16 
17 #endif
18