[sanitizer] Improve FreeBSD ASLR detection
[llvm-project.git] / llvm / test / Transforms / GlobalDCE / deadblockaddr.ll
blob2aea5f1cf8d0772af086570328e250c9a964d111
1 ; RUN: opt -globaldce -simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S < %s | FileCheck %s
3 ; Tests whether globaldce does the right cleanup while removing @bar
4 ; so that a dead BlockAddress reference to foo won't prevent other passes
5 ; to work properly, e.g. simplifycfg
6 @bar = internal unnamed_addr constant i8* blockaddress(@foo, %L1)
8 ; CHECK-LABEL: foo
9 ; CHECK-NOT: br label %L1
10 ; CHECK: ret void
11 define void @foo() {
12 entry:
13   br label %L1
14 L1:
15   ret void