From 2ba5fcb7597a805937257a0ffd83d70c5497c26e Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Tue, 5 Feb 2013 07:29:57 +0000 Subject: Driver and option support for -gsplit-dwarf. This is a part of the DWARF5 split dwarf proposal. llvm-svn: 174349 --- clang/test/Driver/split-debug.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 clang/test/Driver/split-debug.c (limited to 'clang/test/Driver/split-debug.c') 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" + -- cgit v1.2.3