blob: 8eac3ac180593c341db58ce6920f9710c2897a4c [file] [log] [blame]
Eric Christophercee313d2019-04-17 04:52:47 +00001; RUN: opt < %s -sccp -S | FileCheck %s
2; RUN: opt < %s -passes=sccp -S | FileCheck %s
3
4@0 = private unnamed_addr constant [2 x i32] [i32 -1, i32 1]
5@"\01??_7A@@6B@" = unnamed_addr alias i32, getelementptr inbounds ([2 x i32], [2 x i32]* @0, i32 0, i32 1)
6
7; CHECK: ret i32 1
8
9define i32 @main() {
10 %a = load i32, i32* @"\01??_7A@@6B@"
11 ret i32 %a
12}