Home | History | Annotate | Download | only in llvm-split
      1 ; RUN: llvm-split -o %t %s
      2 ; RUN: llvm-dis -o - %t0 | FileCheck --check-prefix=CHECK0 %s
      3 ; RUN: llvm-dis -o - %t1 | FileCheck --check-prefix=CHECK1 %s
      4 
      5 $foo = comdat any
      6 
      7 ; CHECK0: define void @foo()
      8 ; CHECK1: declare void @foo()
      9 define void @foo() comdat {
     10   call void @bar()
     11   ret void
     12 }
     13 
     14 ; CHECK0: define void @bar()
     15 ; CHECK1: declare void @bar()
     16 define void @bar() comdat($foo) {
     17   call void @foo()
     18   ret void
     19 }
     20