hanchenye-llvm-project/clang/test/Parser/cxx-exception-spec.cpp

16 lines
184 B
C++

// RUN: clang -fsyntax-only %s
struct X { };
struct Y { };
void f() throw() { }
void g(int) throw(X) { }
void h() throw(X, Y) { }
class Class {
void foo() throw (X, Y) { }
};