[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / CodeGenCXX / observe-noexcept.cpp
blob7995b2d57f08989178f66aed787aa35a7633231d
1 // RUN: %clang_cc1 -triple powerpc64le-unknown-unknown -std=c++11 -fopenmp -fexceptions -fcxx-exceptions -O0 -emit-llvm %s -o - | FileCheck %s
3 // Check that regions that install a terminate scope in the exception stack can
4 // correctly generate complex arithmetic.
6 // CHECK-LABEL: ffcomplex
7 void ffcomplex (int a) {
8 double _Complex dc = (double)a;
10 // CHECK: call noundef { double, double } @__muldc3(double noundef %{{.+}}, double noundef %{{.+}}, double noundef %{{.+}}, double noundef %{{.+}})
11 dc *= dc;
12 // CHECK: call {{.+}} @__kmpc_fork_call({{.+}} [[REGNAME1:@.*]] to void (i32*, i32*, ...)*), { double, double }* %{{.+}})
13 #pragma omp parallel
15 dc *= dc;
17 // CHECK: ret void
20 // CHECK: define internal {{.+}}[[REGNAME1]](
21 // CHECK-NOT: invoke
22 // CHECK: call noundef { double, double } @__muldc3(double noundef %{{.+}}, double noundef %{{.+}}, double noundef %{{.+}}, double noundef %{{.+}})
23 // CHECK-NOT: invoke
24 // CHECK: ret void
26 // Check if we are observing the function pointer attribute regardless what is
27 // in the exception specification of the callees.
28 void fnoexcp(void) noexcept;
30 // CHECK-LABEL: foo
31 void foo(int a, int b) {
33 void (*fptr)(void) noexcept = fnoexcp;
35 // CHECK: call {{.+}} @__kmpc_fork_call({{.+}} [[REGNAME2:@.*]] to void (i32*, i32*, ...)*), void ()** %{{.+}})
36 #pragma omp parallel
38 fptr();
40 // CHECK: ret void
43 // CHECK: define internal {{.+}}[[REGNAME2]](
44 // CHECK-NOT: invoke
45 // CHECK: call void %{{[0-9]+}}()
46 // CHECK-NOT: invoke
47 // CHECK: ret void