aboutsummaryrefslogtreecommitdiff
path: root/test/PCH/cxx-templates.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/PCH/cxx-templates.h')
-rw-r--r--test/PCH/cxx-templates.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/PCH/cxx-templates.h b/test/PCH/cxx-templates.h
index 42c47f0307..47fa11eb08 100644
--- a/test/PCH/cxx-templates.h
+++ b/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>