1*9ca5c425SRichard Smith // RUN: %clang_cc1 -std=c++11 -fexceptions -fcxx-exceptions -fsyntax-only -verify %s
2771f57deSSebastian Redl 
3771f57deSSebastian Redl // We use pointer assignment compatibility to test instantiation.
4771f57deSSebastian Redl 
5771f57deSSebastian Redl template <int N> void f1() throw(int);
6771f57deSSebastian Redl template <int N> void f2() noexcept(N > 1);
7771f57deSSebastian Redl 
8771f57deSSebastian Redl void (*t1)() throw(int) = &f1<0>;
9771f57deSSebastian Redl void (*t2)() throw() = &f1<0>; // expected-error {{not superset}}
10771f57deSSebastian Redl 
11771f57deSSebastian Redl void (*t3)() noexcept = &f2<2>; // no-error
12771f57deSSebastian Redl void (*t4)() noexcept = &f2<0>; // expected-error {{not superset}}
13