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