summaryrefslogtreecommitdiffstats
path: root/test/OpenMP/openmp_seh.c
blob: 74dccec125e3dd5f13d883d5c005e3780df5ea80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;
}