summaryrefslogtreecommitdiffstats
path: root/clang/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
commita75018aebaaf2e046d57327acc6734cba6ae7e5d (patch)
tree1f3b637252bb9fd9e5f3f3f91525cb6a67f29d3c /clang/test/Driver/split-debug.s
parentf2d396439aeca11931de3d29eaf423ffefd47f70 (diff)
downloadbcm5719-llvm-a75018aebaaf2e046d57327acc6734cba6ae7e5d.tar.gz
bcm5719-llvm-a75018aebaaf2e046d57327acc6734cba6ae7e5d.zip
For split dwarf we should also run the objcopy action if we're
just assembling a file and have passed the option. llvm-svn: 179218
Diffstat (limited to 'clang/test/Driver/split-debug.s')
-rw-r--r--clang/test/Driver/split-debug.s21
1 files changed, 21 insertions, 0 deletions
diff --git a/clang/test/Driver/split-debug.s b/clang/test/Driver/split-debug.s
new file mode 100644
index 00000000000..d5f077af134
--- /dev/null
+++ b/clang/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"
+
OpenPOWER on IntegriCloud