diff options
Diffstat (limited to 'clang/test/Driver/split-debug.c')
-rw-r--r-- | clang/test/Driver/split-debug.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/clang/test/Driver/split-debug.c b/clang/test/Driver/split-debug.c new file mode 100644 index 00000000000..c3903eaaa79 --- /dev/null +++ b/clang/test/Driver/split-debug.c @@ -0,0 +1,19 @@ +// Check that we split debug output properly +// +// REQUIRES: asserts +// RUN: %clang -target x86_64-unknown-linux-gnu -ccc-print-phases \ +// RUN: -gsplit-dwarf -arch x86_64 %s 2> %t +// RUN: FileCheck -check-prefix=CHECK-ACTIONS < %t %s +// +// CHECK-ACTIONS: 0: input, "{{.*}}split-debug.c", c +// CHECK-ACTIONS: 4: split-debug, {3}, object + +// Check output name derivation. +// +// RUN: %clang -target x86_64-unknown-linux-gnu -ccc-print-bindings \ +// RUN: -gsplit-dwarf -arch x86_64 -c %s 2> %t +// RUN: FileCheck -check-prefix=CHECK-OUTPUT-NAME < %t %s +// +// CHECK-OUTPUT-NAME:# "x86_64-unknown-linux-gnu" - "clang", inputs: ["{{.*}}split-debug.c"], output: "{{.*}}split-debug{{.*}}.o" +// CHECK-OUTPUT-NAME:# "x86_64-unknown-linux-gnu" - "linuxtools::SplitDebug", inputs: ["{{.*}}split-debug{{.*}}.o"], output: "{{.*}}split-debug{{.*}}.o" + |