blob: 5c77e6e98cf67443feee40deb8e89fc9baaf3250 [file] [log] [blame]
Eric Christopher2ba5fcb2013-02-05 07:29:57 +00001// Check that we split debug output properly
2//
3// REQUIRES: asserts
Eric Christopher248357f2013-02-21 22:35:01 +00004// RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -c -### %s 2> %t
Eric Christopher2ba5fcb2013-02-05 07:29:57 +00005// RUN: FileCheck -check-prefix=CHECK-ACTIONS < %t %s
6//
Eric Christopher248357f2013-02-21 22:35:01 +00007// CHECK-ACTIONS: objcopy{{.*}}--extract-dwo{{.*}}"split-debug.dwo"
8// CHECK-ACTIONS: objcopy{{.*}}--strip-dwo{{.*}}"split-debug.o"
Eric Christopher2ba5fcb2013-02-05 07:29:57 +00009
Eric Christopher2ba5fcb2013-02-05 07:29:57 +000010
Eric Christopherd42fb732013-02-21 22:35:05 +000011// 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
Eric Christopher77569ff2013-02-22 01:33:46 +000015
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"