1 ; RUN: opt < %s -globalopt -S | FileCheck %s
4 @G = internal global void ()* null ; <void ()**> [#uses=2]
6 define internal void @Actual() {
13 ; CHECK: store void ()* @Actual, void ()** @G
14 store void ()* @Actual, void ()** @G
18 define void @doit() #0 {
20 %FP = load void ()*, void ()** @G ; <void ()*> [#uses=2]
21 ; CHECK: %FP = load void ()*, void ()** @G
22 %CC = icmp eq void ()* %FP, null ; <i1> [#uses=1]
23 ; CHECK: %CC = icmp eq void ()* %FP, null
24 br i1 %CC, label %isNull, label %DoCall
25 ; CHECK: br i1 %CC, label %isNull, label %DoCall
29 ; CHECK: call void %FP()
40 attributes #0 = { "null-pointer-is-valid"="true" }