blob: 8e58ac8a5683748c18cbb39862a60c927d584e74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
;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
}
|