brintos

brintos / llvm-project-archived public Read only

0
0
Text · 415 B · ffaf397 Raw
15 lines · c
1// RUN: %clang_cc1 %s -emit-llvm -fextend-variable-liveness -fexceptions -o - | FileCheck %s --implicit-check-not="landingpad {"2 3// Check that fake uses do not mistakenly cause a landing pad to be generated when4// exceptions are enabled.5 6extern void bar(int);7void foo(int p) {8  int a = 17;9  bar(a);10}11 12// CHECK:      define {{.*}} @foo13// CHECK-NOT:  personality14// CHECK:      call void (...) @llvm.fake.use15