aboutsummaryrefslogtreecommitdiff
path: root/test/Parser/cxx-exception-spec.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2008-11-25 03:22:00 +0000
committerDouglas Gregor <dgregor@apple.com>2008-11-25 03:22:00 +0000
commit0fe7bea6fca9737c6c145aaa4a2ad3abe595782a (patch)
tree1893e68a51bdfc718d32d7e2609596070cf86e89 /test/Parser/cxx-exception-spec.cpp
parent661fc39abc5338e9dccd2f64467cac8bbe25c46a (diff)
Simple parsing of exception specifications, with no semantic analysis yet
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60005 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/cxx-exception-spec.cpp')
-rw-r--r--test/Parser/cxx-exception-spec.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Parser/cxx-exception-spec.cpp b/test/Parser/cxx-exception-spec.cpp
new file mode 100644
index 0000000000..47e9ffb50b
--- /dev/null
+++ b/test/Parser/cxx-exception-spec.cpp
@@ -0,0 +1,15 @@
+// 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) { }
+};