[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / CodeGenCXX / PR28523.cpp
blob4c3a81c8b85485c3d8bd695dd1bf4b4c2f6ed0a3
1 // RUN: %clang_cc1 -std=c++14 -verify -triple %itanium_abi_triple -emit-llvm %s -o - | FileCheck %s
2 // expected-no-diagnostics
4 template <class F> void parallel_loop(F &&f) { f(0); }
6 //CHECK-LABEL: @main
7 int main() {
8 // CHECK: [[X_ADDR:%.+]] = alloca i32,
9 int x;
10 // CHECK: getelementptr inbounds
11 // CHECK: store i32* [[X_ADDR]], i32** %
12 // CHECK: call
13 parallel_loop([&](auto y) {
14 #pragma clang __debug captured
16 x = y;
18 });