Clang Project

clang_source_code/test/OpenMP/openmp_seh.c
1// RUN: %clang_cc1 -verify -triple x86_64-pc-windows-msvc19.0.0 -fopenmp -fms-compatibility -x c++ -emit-llvm %s -o - | FileCheck %s
2
3// RUN: %clang_cc1 -verify -triple x86_64-pc-windows-msvc19.0.0 -fopenmp-simd -fms-compatibility -x c++ -emit-llvm %s -o - | FileCheck --check-prefix SIMD-ONLY0 %s
4// SIMD-ONLY0-NOT: {{__kmpc|__tgt}}
5// expected-no-diagnostics
6// REQUIRES: x86-registered-target
7extern "C" {
8void __cpuid(int[4], int);
9}
10
11// CHECK-LABEL: @main
12int main(void) {
13  __try {
14    int info[4];
15    __cpuid(info, 1);
16  } __except (1) {
17  }
18
19  return 0;
20}
21
22