1 ; RUN: opt -passes=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 ptr blockaddress(@foo, %L1)
9 ; CHECK-NOT: br label %L1