1 ; RUN: opt -passes=globalopt -S < %s | FileCheck %s
3 ; This tests the assignemnt of non-pointer to global address
4 ; (assert due to D106589).
6 @a162 = internal global ptr null, align 1
11 ; CHECK-NEXT: [[TMP0:%.*]] = load ptr, ptr @a162, align 1
12 ; CHECK-NEXT: store i16 0, ptr @a162, align 1
13 ; CHECK-NEXT: ret void
16 %0 = load ptr, ptr @a162, align 1
17 store i16 0, ptr @a162, align 1