2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only %s
|
2008-11-25 11:22:00 +08:00
|
|
|
|
|
|
|
struct X { };
|
|
|
|
|
|
|
|
struct Y { };
|
|
|
|
|
|
|
|
void f() throw() { }
|
|
|
|
|
|
|
|
void g(int) throw(X) { }
|
|
|
|
|
|
|
|
void h() throw(X, Y) { }
|
|
|
|
|
|
|
|
class Class {
|
|
|
|
void foo() throw (X, Y) { }
|
|
|
|
};
|
2009-04-30 01:30:04 +08:00
|
|
|
|
|
|
|
void (*fptr)() throw();
|