Skip to content
Snippets Groups Projects
Commit 21c505f9 authored by Chris Lattner's avatar Chris Lattner
Browse files

New testcase for fun hack that is absolutely necessary for the C++ stdlib.

llvm-svn: 9362
parent 88be7006
No related branches found
No related tags found
No related merge requests found
; 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 { int }
%X = global [ 4 x sbyte ] zeroinitializer
implementation
int* %test() {
%P = getelementptr {int}* %X, long 0, ubyte 0
ret int* %P
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment