summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/try-catch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenCXX/try-catch.cpp')
-rw-r--r--test/CodeGenCXX/try-catch.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGenCXX/try-catch.cpp b/test/CodeGenCXX/try-catch.cpp
index 89f229f..b50214e 100644
--- a/test/CodeGenCXX/try-catch.cpp
+++ b/test/CodeGenCXX/try-catch.cpp
@@ -11,3 +11,11 @@ void f() {
} catch (const X x) {
}
}
+
+void h() {
+ try {
+ throw "ABC";
+ // CHECK: @_ZTIPKc to i8
+ } catch (char const(&)[4]) {
+ }
+}
OpenPOWER on IntegriCloud