[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / OpenMP / openmp_seh.c
blob0bdd079478894e37f0bd975704138386ac5d9119
1 // RUN: %clang_cc1 -verify -triple x86_64-pc-windows-msvc19.0.0 -fopenmp -fms-compatibility -x c++ -emit-llvm %s -o - | FileCheck %s
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
7 extern "C" {
8 void __cpuid(int[4], int);
11 // CHECK-LABEL: @main
12 int main(void) {
13 __try {
14 int info[4];
15 __cpuid(info, 1);
16 } __except (1) {
19 return 0;