18 lines
214 B
C++
18 lines
214 B
C++
// RUN: %clang_cc1 -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) { }
|
|
};
|
|
|
|
void (*fptr)() throw();
|