brintos

brintos / llvm-project-archived public Read only

0
0
Text · 483 B · c1ef629 Raw
16 lines · cpp
1// RUN: %clang_cc1 -triple x86_64-linux -emit-llvm -o - %s -fcxx-exceptions                                         | FileCheck %s2// RUN: %clang_cc1 -triple x86_64-linux -emit-llvm -o - %s -fcxx-exceptions -fexperimental-new-constant-interpreter | FileCheck %s3 4 5/// The read from a used to succeed, causing the entire if statement to vanish.6extern void e();7int somefunc() {8  auto foo = [a = false]() mutable {9    if (a)10      e();11  };12  foo();13}14 15// CHECK: call void @_Z1ev()16