Eric Christopher | 0945a64 | 2016-03-24 00:34:02 +0000 | [diff] [blame] | 1 | // Check that we aren't splitting debug output for modules builds that don't produce object files. |
| 2 | // |
| 3 | // RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -c -fmodules -### %s 2> %t |
| 4 | // RUN: FileCheck -check-prefix=CHECK-NO-ACTIONS < %t %s |
| 5 | // |
| 6 | // 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 |
| 7 | // RUN: FileCheck -check-prefix=CHECK-NO-ACTIONS < %t %s |
| 8 | // |
| 9 | // FIXME: This should fail using clang, except that the type of the output for |
| 10 | // an object output with modules is given as clang::driver::types::TY_PCH |
| 11 | // rather than TY_Object. |
| 12 | // RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -c -fmodules -fmodule-format=obj -### %s 2> %t |
| 13 | // RUN: FileCheck -check-prefix=CHECK-NO-ACTIONS < %t %s |
| 14 | // |
| 15 | // CHECK-NO-ACTIONS-NOT: objcopy |