blob: c3903eaaa79c68c2c237a209d75e31e9ec0adae7 [file] [log] [blame]
Eric Christopher2ba5fcb2013-02-05 07:29:57 +00001// Check that we split debug output properly
2//
3// REQUIRES: asserts
4// RUN: %clang -target x86_64-unknown-linux-gnu -ccc-print-phases \
5// RUN: -gsplit-dwarf -arch x86_64 %s 2> %t
6// RUN: FileCheck -check-prefix=CHECK-ACTIONS < %t %s
7//
8// CHECK-ACTIONS: 0: input, "{{.*}}split-debug.c", c
9// CHECK-ACTIONS: 4: split-debug, {3}, object
10
11// Check output name derivation.
12//
13// RUN: %clang -target x86_64-unknown-linux-gnu -ccc-print-bindings \
14// RUN: -gsplit-dwarf -arch x86_64 -c %s 2> %t
15// RUN: FileCheck -check-prefix=CHECK-OUTPUT-NAME < %t %s
16//
17// CHECK-OUTPUT-NAME:# "x86_64-unknown-linux-gnu" - "clang", inputs: ["{{.*}}split-debug.c"], output: "{{.*}}split-debug{{.*}}.o"
18// CHECK-OUTPUT-NAME:# "x86_64-unknown-linux-gnu" - "linuxtools::SplitDebug", inputs: ["{{.*}}split-debug{{.*}}.o"], output: "{{.*}}split-debug{{.*}}.o"
19