diff options
author | Eric Christopher <echristo@gmail.com> | 2013-02-05 07:29:57 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-02-05 07:29:57 +0000 |
commit | c706c8e440abf61910c042380e19c67932998395 (patch) | |
tree | e1ad31e6b3fe68189ecfdaa8ad03bd251642cc3c /test/Driver/split-debug.c | |
parent | 4f4e2af2643c1914c2e49ac6372f7c2c38616432 (diff) | |
download | clang-c706c8e440abf61910c042380e19c67932998395.tar.gz clang-c706c8e440abf61910c042380e19c67932998395.tar.bz2 clang-c706c8e440abf61910c042380e19c67932998395.tar.xz |
Driver and option support for -gsplit-dwarf. This is a part of
the DWARF5 split dwarf proposal.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174349 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/split-debug.c')
-rw-r--r-- | test/Driver/split-debug.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/Driver/split-debug.c b/test/Driver/split-debug.c new file mode 100644 index 0000000000..c3903eaaa7 --- /dev/null +++ b/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" + |