blob: df5340f46a2f1df09fb92fbc56c5f05701cf2b29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
; This tests a hack put into place specifically for the C++ libstdc++ library.
; It uses an ugly hack which is cleaned up by the funcresolve pass.
;
; RUN: llvm-as < %s | opt -funcresolve | llvm-dis | grep @X | grep '{'
@X = external global { i32 }
@X = global [ 4 x i8 ] zeroinitializer
define i32* @test() {
%P = getelementptr {i32}* @X, i64 0, i32 0
ret i32* %P
}
|