mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-24 22:32:47 +00:00
36a0947820
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81290 91177308-0d34-0410-b5e6-96231b3b80d8
25 lines
467 B
LLVM
25 lines
467 B
LLVM
; RUN: llc < %s -mtriple=i686-pc-linux-gnu | FileCheck %s -check-prefix=LINUX
|
|
; RUN: llc < %s -mtriple=i686-apple-darwin8 | FileCheck %s -check-prefix=DARWIN
|
|
|
|
@a = hidden global i32 0
|
|
@b = external global i32
|
|
|
|
define weak hidden void @t1() nounwind {
|
|
; LINUX: .hidden t1
|
|
; LINUX: t1:
|
|
|
|
; DARWIN: .private_extern _t1
|
|
; DARWIN: t1:
|
|
ret void
|
|
}
|
|
|
|
define weak void @t2() nounwind {
|
|
; LINUX: t2:
|
|
; LINUX: .hidden a
|
|
|
|
; DARWIN: t2:
|
|
; DARWIN: .private_extern _a
|
|
ret void
|
|
}
|
|
|