mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-19 01:34:32 +00:00
69ccadd753
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32115 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
401 B
LLVM
15 lines
401 B
LLVM
; 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-upgrade < %s | llvm-as | 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, uint 0
|
|
ret int* %P
|
|
}
|