mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-16 11:05:54 +00:00
e5551ed9ce
list of externals. This makes sense since a shared library with no symbols can still be useful if it has static constructors. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166795 91177308-0d34-0410-b5e6-96231b3b80d8
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
|
|
}
|