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