| Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -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(); | ||||