mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-11 21:57:55 +00:00
New testcase for fun hack that is absolutely necessary for the C++ stdlib.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9362 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
523b30cb59
commit
f4e643ffe0
@ -0,0 +1,14 @@
|
||||
; 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
|
||||
}
|
Loading…
Reference in New Issue
Block a user