From 2b6b257f4e5503a7a2675bdb8735693db769f75c Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 23 Jul 2016 20:44:14 +0000 Subject: Vendor import of clang release_39 branch r276489: https://llvm.org/svn/llvm-project/cfe/branches/release_39@276489 --- test/Driver/split-debug.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/Driver/split-debug.h (limited to 'test/Driver/split-debug.h') diff --git a/test/Driver/split-debug.h b/test/Driver/split-debug.h new file mode 100644 index 000000000000..bb05f30b6754 --- /dev/null +++ b/test/Driver/split-debug.h @@ -0,0 +1,15 @@ +// Check that we aren't splitting debug output for modules builds that don't produce object files. +// +// RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -c -fmodules -### %s 2> %t +// RUN: FileCheck -check-prefix=CHECK-NO-ACTIONS < %t %s +// +// RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -c -fmodules -emit-module -fmodules-embed-all-files -fno-implicit-modules -fno-implicit-module-maps -### %s 2> %t +// RUN: FileCheck -check-prefix=CHECK-NO-ACTIONS < %t %s +// +// FIXME: This should fail using clang, except that the type of the output for +// an object output with modules is given as clang::driver::types::TY_PCH +// rather than TY_Object. +// RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -c -fmodules -fmodule-format=obj -### %s 2> %t +// RUN: FileCheck -check-prefix=CHECK-NO-ACTIONS < %t %s +// +// CHECK-NO-ACTIONS-NOT: objcopy -- cgit v1.3