summaryrefslogtreecommitdiffstats
path: root/clang/test/PCH/cxx-templates.h
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-07-22 16:03:56 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-07-22 16:03:56 +0000
commit47cd7a91f47e8687a801e926293afcb8ef93ffd8 (patch)
tree70362e6f9c7ff8e9912bd72c82a86921e43c9c8f /clang/test/PCH/cxx-templates.h
parentfd23a97d9c6d15125bda67a00fe12b820cd452f3 (diff)
downloadbcm5719-llvm-47cd7a91f47e8687a801e926293afcb8ef93ffd8.tar.gz
bcm5719-llvm-47cd7a91f47e8687a801e926293afcb8ef93ffd8.zip
Support C++ try/catch statements for PCH.
llvm-svn: 109112
Diffstat (limited to 'clang/test/PCH/cxx-templates.h')
-rw-r--r--clang/test/PCH/cxx-templates.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/PCH/cxx-templates.h b/clang/test/PCH/cxx-templates.h
index 42c47f03076..47fa11eb080 100644
--- a/clang/test/PCH/cxx-templates.h
+++ b/clang/test/PCH/cxx-templates.h
@@ -88,7 +88,8 @@ template<unsigned N>
bool isInt(int x);
template<> bool isInt<8>(int x) {
- return true;
+ try { ++x; } catch(...) { --x; }
+ return true;
}
template<typename _CharT>
OpenPOWER on IntegriCloud