blob: 64e8f2fa03d2bc5ab88df40d66e02513e74a5283 [file] [log] [blame]
Eric Christophera75018a2013-04-10 21:30:40 +00001// Check that we split debug output properly
2//
Eric Christophera75018a2013-04-10 21:30:40 +00003// RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -c -### %s 2> %t
4// RUN: FileCheck -check-prefix=CHECK-ACTIONS < %t %s
5//
6// CHECK-ACTIONS: objcopy{{.*}}--extract-dwo{{.*}}"split-debug.dwo"
7// CHECK-ACTIONS: objcopy{{.*}}--strip-dwo{{.*}}"split-debug.o"
8
9
10// RUN: %clang -target x86_64-macosx -gsplit-dwarf -c -### %s 2> %t
11// RUN: FileCheck -check-prefix=CHECK-NO-ACTIONS < %t %s
12//
13// CHECK-NO-ACTIONS-NOT: -split-dwarf
14
15
16// RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -o Bad.x -### %s 2> %t
17// RUN: FileCheck -check-prefix=CHECK-BAD < %t %s
18//
19// CHECK-BAD-NOT: "Bad.dwo"
20