aboutsummaryrefslogtreecommitdiffstats
path: root/test/OpenMP/openmp_seh.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/OpenMP/openmp_seh.c')
-rw-r--r--test/OpenMP/openmp_seh.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/OpenMP/openmp_seh.c b/test/OpenMP/openmp_seh.c
new file mode 100644
index 000000000000..74dccec125e3
--- /dev/null
+++ b/test/OpenMP/openmp_seh.c
@@ -0,0 +1,18 @@
+// RUN: %clang_cc1 -verify -triple x86_64-pc-windows-msvc19.0.0 -fopenmp -fms-compatibility -x c++ -emit-llvm %s -o - | FileCheck %s
+// expected-no-diagnostics
+// REQUIRES: x86-registered-target
+extern "C" {
+void __cpuid(int[4], int);
+}
+
+// CHECK-LABEL: @main
+int main(void) {
+ __try {
+ int info[4];
+ __cpuid(info, 1);
+ } __except (1) {
+ }
+
+ return 0;
+}
+