brintos

brintos / llvm-project-archived public Read only

0
0
Text · 408 B · a74887d Raw
19 lines · c
1// RUN: %clang_cc1 %s -emit-llvm -fextend-variable-liveness -o - | FileCheck %s2//3// Check we don't assert when there is no more code after a while statement4// and the body of the while statement ends in a return, i.e. no insertion point5// is available.6 7// CHECK: define{{.*}}foo8// CHECK: call{{.*}}llvm.fake.use9 10void foo() {11  {12    while (1) {13      int ret;14      if (1)15        return;16    }17  }18}19