summaryrefslogtreecommitdiffstats
path: root/clang/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
commit2afd0be069e87664b64bea0229f266fd8192ebf1 (patch)
tree2d412ecd4072b18e04b4226e6ddbb4905ae1581d /clang/test/Parser/cxx-exception-spec.cpp
parentf39268ae8c0cb15ea0ea7dcb108cc416eafdad59 (diff)
downloadbcm5719-llvm-2afd0be069e87664b64bea0229f266fd8192ebf1.tar.gz
bcm5719-llvm-2afd0be069e87664b64bea0229f266fd8192ebf1.zip
Simple parsing of exception specifications, with no semantic analysis yet
llvm-svn: 60005
Diffstat (limited to 'clang/test/Parser/cxx-exception-spec.cpp')
-rw-r--r--clang/test/Parser/cxx-exception-spec.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/clang/test/Parser/cxx-exception-spec.cpp b/clang/test/Parser/cxx-exception-spec.cpp
new file mode 100644
index 00000000000..47e9ffb50b3
--- /dev/null
+++ b/clang/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) { }
+};
OpenPOWER on IntegriCloud