xref: /llvm-project/clang/test/Modules/clang_module_file_info.m (revision 7793e676514bc102e97a993e90257e8628069a8b)
1// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}}
2@import DependsOnModule;
3
4// RUN: rm -rf %t %t-obj
5// RUN: %clang_cc1 -w -Wunused -fmodules -fmodule-format=obj -fimplicit-module-maps -fdisable-module-hash -fmodules-cache-path=%t-obj -F %S/Inputs -DBLARG -DWIBBLE=WOBBLE -fmodule-feature myfeature %s
6// RUN: %clang -module-file-info %t-obj/DependsOnModule.pcm | FileCheck %s
7// RUN: %clang -module-file-info %t-obj/DependsOnModule.pcm | FileCheck %s
8
9// This test is just verifying that the clang driver doesn't delete the input
10// file when -module-file-info is passed. We verify this by dumping the module
11// twice subsequently. We have other tests to verify the contents of the module
12// and the tool output (see: module_file_info.m)
13
14// CHECK: Generated by this Clang:
15
16// CHECK: Module name: DependsOnModule
17