Home | History | Annotate | Download | only in Driver
      1 // Check that we split debug output properly
      2 //
      3 // REQUIRES: asserts
      4 // RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -c -### %s 2> %t
      5 // RUN: FileCheck -check-prefix=CHECK-ACTIONS < %t %s
      6 //
      7 // CHECK-ACTIONS: objcopy{{.*}}--extract-dwo{{.*}}"split-debug.dwo"
      8 // CHECK-ACTIONS: objcopy{{.*}}--strip-dwo{{.*}}"split-debug.o"
      9 
     10 
     11 // RUN: %clang -target x86_64-macosx -gsplit-dwarf -c -### %s 2> %t
     12 // RUN: FileCheck -check-prefix=CHECK-NO-ACTIONS < %t %s
     13 //
     14 // CHECK-NO-ACTIONS-NOT: -split-dwarf
     15 
     16 
     17 // RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -o Bad.x -### %s 2> %t
     18 // RUN: FileCheck -check-prefix=CHECK-BAD < %t %s
     19 //
     20 // CHECK-BAD-NOT: "Bad.dwo"
     21 
     22 // RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -c -### %s 2> %t
     23 // RUN: FileCheck -check-prefix=CHECK-OPTION < %t %s
     24 //
     25 // CHECK-OPTION: "-split-dwarf-file" "split-debug.dwo"
     26 
     27 // RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -S -### %s 2> %t
     28 // RUN: FileCheck -check-prefix=CHECK-ASM < %t %s
     29 //
     30 // CHECK-ASM-NOT: objcopy
     31 
     32 // RUN: %clang -target x86_64-unknown-linux-gnu -no-integrated-as -gsplit-dwarf -c -### %s 2> %t
     33 // RUN: FileCheck -check-prefix=CHECK-IAS < %t %s
     34 //
     35 // CHECK-IAS: objcopy
     36