diff options
author | Douglas Gregor <dgregor@apple.com> | 2008-11-25 03:22:00 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2008-11-25 03:22:00 +0000 |
commit | 2afd0be069e87664b64bea0229f266fd8192ebf1 (patch) | |
tree | 2d412ecd4072b18e04b4226e6ddbb4905ae1581d /clang/test/Parser/cxx-exception-spec.cpp | |
parent | f39268ae8c0cb15ea0ea7dcb108cc416eafdad59 (diff) | |
download | bcm5719-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.cpp | 15 |
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) { } +}; |