blob: f301a63503dd42b26e254eb7fc14c810c081afbb (
plain)
1
2
3
4
5
6
7
|
// RUN: %clang_cc1 -fsyntax-only -verify -fcxx-exceptions -std=c++11 %s
namespace MissingOnTemplate {
template<typename T> void foo(T) noexcept(true); // expected-note {{previous}}
template<typename T> void foo(T); // expected-error {{missing exception specification 'noexcept(true)'}}
void test() { foo(0); }
}
|