Home | History | Annotate | Download | only in Other
      1 ;RUN: opt -S -std-link-opts < %s | FileCheck %s
      2 ; Simple test to check that -std-link-opts keeps only the main function.
      3 
      4 ; CHECK-NOT: define
      5 ; CHECK: define void @main
      6 ; CHECK-NOT: define
      7 define void @main() {
      8   ret void
      9 }
     10 
     11 define void @foo() {
     12   ret void
     13 }
     14