summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/altivec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/altivec.cpp')
-rw-r--r--test/SemaCXX/altivec.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/SemaCXX/altivec.cpp b/test/SemaCXX/altivec.cpp
index 39421b7..9de1f04 100644
--- a/test/SemaCXX/altivec.cpp
+++ b/test/SemaCXX/altivec.cpp
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -faltivec -fno-lax-vector-conversions -triple powerpc-unknown-unknown -verify %s
+// RUN: %clang_cc1 -faltivec -fno-lax-vector-conversions -triple powerpc-unknown-unknown -fcxx-exceptions -verify %s
typedef int V4i __attribute__((vector_size(16)));
@@ -76,3 +76,8 @@ namespace LValueToRValueConversions {
vector float initFloat = (vector float)(Struct().f); // expected-error {{did you mean to call it}}
vector int initInt = (vector int)(Struct().n); // expected-error {{did you mean to call it}}
}
+
+void f() {
+ try {}
+ catch (vector pixel px) {}
+};
OpenPOWER on IntegriCloud