aboutsummaryrefslogtreecommitdiff
path: root/test/Driver/split-debug.s
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-04-10 21:30:40 +0000
committerEric Christopher <echristo@gmail.com>2013-04-10 21:30:40 +0000
commit708d72a33de05579ba5ca1c22eeea92d1e47a9ee (patch)
tree25c0694889cb305ca0ed0c05deb29f1d64db4fab /test/Driver/split-debug.s
parent05422365baa8e603237f865e0de52f73f8b77235 (diff)
For split dwarf we should also run the objcopy action if we're
just assembling a file and have passed the option. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179218 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/split-debug.s')
-rw-r--r--test/Driver/split-debug.s21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/Driver/split-debug.s b/test/Driver/split-debug.s
new file mode 100644
index 0000000000..d5f077af13
--- /dev/null
+++ b/test/Driver/split-debug.s
@@ -0,0 +1,21 @@
+// Check that we split debug output properly
+//
+// REQUIRES: asserts
+// RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -c -### %s 2> %t
+// RUN: FileCheck -check-prefix=CHECK-ACTIONS < %t %s
+//
+// CHECK-ACTIONS: objcopy{{.*}}--extract-dwo{{.*}}"split-debug.dwo"
+// CHECK-ACTIONS: objcopy{{.*}}--strip-dwo{{.*}}"split-debug.o"
+
+
+// RUN: %clang -target x86_64-macosx -gsplit-dwarf -c -### %s 2> %t
+// RUN: FileCheck -check-prefix=CHECK-NO-ACTIONS < %t %s
+//
+// CHECK-NO-ACTIONS-NOT: -split-dwarf
+
+
+// RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -o Bad.x -### %s 2> %t
+// RUN: FileCheck -check-prefix=CHECK-BAD < %t %s
+//
+// CHECK-BAD-NOT: "Bad.dwo"
+