xref: /aosp_15_r20/external/llvm/test/Transforms/GlobalDCE/2002-07-17-CastRef.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: opt < %s -globaldce
2*9880d681SAndroid Build Coastguard Worker;
3*9880d681SAndroid Build Coastguard Workerdefine internal void @func() {
4*9880d681SAndroid Build Coastguard Worker        ret void
5*9880d681SAndroid Build Coastguard Worker}
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Workerdefine void @main() {
8*9880d681SAndroid Build Coastguard Worker        %X = bitcast void ()* @func to i32*             ; <i32*> [#uses=0]
9*9880d681SAndroid Build Coastguard Worker        ret void
10*9880d681SAndroid Build Coastguard Worker}
11*9880d681SAndroid Build Coastguard Worker
12