mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-26 07:29:55 +00:00
14 lines
259 B
LLVM
14 lines
259 B
LLVM
|
;RUN: opt -S -std-link-opts < %s | FileCheck %s
|
||
|
; Simple test to check that -std-link-opts keeps only the main function.
|
||
|
|
||
|
; CHECK-NOT: define
|
||
|
; CHECK: define void @main
|
||
|
; CHECK-NOT: define
|
||
|
define void @main() {
|
||
|
ret void
|
||
|
}
|
||
|
|
||
|
define void @foo() {
|
||
|
ret void
|
||
|
}
|