[Reland][Runtimes] Merge 'compile_commands.json' files from runtimes build (#116303)
[llvm-project.git] / clang / test / CodeGenCXX / PR28523.cpp
blob3d467ab7dc45a389e9d151e06656aaa1c942e62f
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 ptr [[X_ADDR]], ptr %
12 // CHECK: call
13 parallel_loop([&](auto y) {
14 #pragma clang __debug captured
16 x = y;
18 });