1 // RUN: %clang_cc1 %std_cxx98-14 -fsyntax-only -verify -fexceptions -fobjc-exceptions %s
2 // expected-no-diagnostics
4 // Note that we're specifically excluding -fcxx-exceptions in the command line above.
6 // That this should work even with -fobjc-exceptions is PR9358
8 // PR7243: redeclarations
10 void foo() throw(int);
17 virtual void foo() throw();
21 virtual void foo() throw(int);
25 // Calls from less permissive contexts. We don't actually do this
26 // check, but if we did it should also be disabled under
29 void foo() throw(int);