Eric Christopher | 2ba5fcb | 2013-02-05 07:29:57 +0000 | [diff] [blame] | 1 | // 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 | |