blob: 694dbc2217fb05769ac40092ce076fedff1f5271 [file] [log] [blame]
Chris Lattnerf4e643f2003-10-22 03:35:18 +00001; This tests a hack put into place specifically for the C++ libstdc++ library.
2; It uses an ugly hack which is cleaned up by the funcresolve pass.
3
4; RUN: llvm-as < %s | opt -funcresolve | llvm-dis | grep %X | grep '{'
5
6%X = external global { int }
7%X = global [ 4 x sbyte ] zeroinitializer
8
9implementation
10
11int* %test() {
12 %P = getelementptr {int}* %X, long 0, ubyte 0
13 ret int* %P
14}