Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -fsyntax-only %s |
Douglas Gregor | 0fe7bea | 2008-11-25 03:22:00 +0000 | [diff] [blame] | 2 | |
3 | struct X { }; | ||||
4 | |||||
5 | struct Y { }; | ||||
6 | |||||
7 | void f() throw() { } | ||||
8 | |||||
9 | void g(int) throw(X) { } | ||||
10 | |||||
11 | void h() throw(X, Y) { } | ||||
12 | |||||
13 | class Class { | ||||
14 | void foo() throw (X, Y) { } | ||||
15 | }; | ||||
Sebastian Redl | 7dc8134 | 2009-04-29 17:30:04 +0000 | [diff] [blame] | 16 | |
17 | void (*fptr)() throw(); |