mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
4b51029c9e
list of externals. This makes sense since a shared library with no symbols can still be useful if it has static constructors. llvm-svn: 166795
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
|
|
}
|