xref: /aosp_15_r20/external/clang/test/Driver/split-debug.h (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // Check that we aren't splitting debug output for modules builds that don't produce object files.
2*67e74705SXin Li //
3*67e74705SXin Li // RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -c -fmodules -### %s 2> %t
4*67e74705SXin Li // RUN: FileCheck -check-prefix=CHECK-NO-ACTIONS < %t %s
5*67e74705SXin Li //
6*67e74705SXin Li // 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*67e74705SXin Li // RUN: FileCheck -check-prefix=CHECK-NO-ACTIONS < %t %s
8*67e74705SXin Li //
9*67e74705SXin Li // FIXME: This should fail using clang, except that the type of the output for
10*67e74705SXin Li // an object output with modules is given as clang::driver::types::TY_PCH
11*67e74705SXin Li // rather than TY_Object.
12*67e74705SXin Li // RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -c -fmodules -fmodule-format=obj -### %s 2> %t
13*67e74705SXin Li // RUN: FileCheck -check-prefix=CHECK-NO-ACTIONS < %t %s
14*67e74705SXin Li //
15*67e74705SXin Li // CHECK-NO-ACTIONS-NOT: objcopy
16