Debian Codegraph @

clang/test/CodeGen/fake-use-landingpad.c

raw
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 when
4 // exceptions are enabled.
5
6 extern void bar(int);
7 void foo(int p) {
8 int a = 17;
9 bar(a);
10 }
11
12 // CHECK: define {{.*}} @foo
13 // CHECK-NOT: personality
14 // CHECK: call void (...) @llvm.fake.use