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