65 lines · plain
1// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}}2@import DependsOnModule;3 4// RUN: rm -rf %t %t-obj %t-hash5// RUN: %clang_cc1 -w -Wunused -fmodules -fmodule-format=raw -fimplicit-module-maps -fdisable-module-hash -fmodules-cache-path=%t -F %S/Inputs -DBLARG -DWIBBLE=WOBBLE -fmodule-feature myfeature %s6// RUN: %clang_cc1 -module-file-info %t/DependsOnModule.pcm | FileCheck %s --check-prefixes=RAW,CHECK,MACROS7 8// 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 %s9// RUN: %clang_cc1 -module-file-info %t-obj/DependsOnModule.pcm | FileCheck %s --check-prefixes=OBJ,CHECK,MACROS10 11// RUN: %clang_cc1 -w -Wunused -fmodules -fmodule-format=obj -fimplicit-module-maps -fmodules-cache-path=%t-hash -F %S/Inputs -DBLARG -DWIBBLE=WOBBLE -fmodule-feature myfeature %s12// RUN: %clang_cc1 -module-file-info %t-hash/*/DependsOnModule-*.pcm | FileCheck %s --check-prefixes=OBJ,CHECK,NO_MACROS13 14// RAW: Module format: raw15// OBJ: Module format: obj16// CHECK: Generated by this Clang:17 18// CHECK: Module name: DependsOnModule19// CHECK: Module map file: {{.*}}DependsOnModule.framework{{[/\\]}}Modules{{[/\\]}}module.modulemap20// CHECK: Imports module 'Module': {{.*}}Module{{.*}}.pcm21 22// CHECK: Language options:23// CHECK: C99: Yes24// CHECK: Objective-C: Yes25// CHECK: modules semantics: Yes26// CHECK: Module features:27// CHECK: myfeature28 29// CHECK: Target options:30// CHECK: Triple:31// CHECK: CPU:32// CHECK: TuneCPU:33// CHECK: ABI:34 35// CHECK: Header search options:36// CHECK: System root [-isysroot=]: '/'37// CHECK: Resource dir [ -resource-dir=]: '{{.*}}clang{{.*}}'38// CHECK: Use builtin include directories [-nobuiltininc]: Yes39// CHECK: Use standard system include directories [-nostdinc]: No40// CHECK: Use standard C++ include directories [-nostdinc++]: Yes41// CHECK: Use libc++ (rather than libstdc++) [-stdlib=]:42 43// CHECK: Preprocessor options:44// CHECK: Uses compiler/target-specific predefines [-undef]: Yes45// CHECK: Uses detailed preprocessing record (for indexing): No46// NO_MACROS-NOT: Predefined macros:47// MACROS: Predefined macros:48// MACROS-NEXT: -DBLARG49// MACROS-NEXT: -DWIBBLE=WOBBLE50// CHECK: Input file: {{.*}}module.modulemap51// CHECK-NEXT: Input file: {{.*}}module.private.modulemap52// CHECK-NEXT: Input file: {{.*}}DependsOnModule.h53// CHECK-NEXT: Input file: {{.*}}module.modulemap54// CHECK-NEXT: Input file: {{.*}}other.h55// CHECK-NEXT: Input file: {{.*}}not_cxx.h56// CHECK-NEXT: Input file: {{.*}}not_coroutines.h57// CHECK-NEXT: Input file: {{.*}}SubFramework.h58// CHECK-NEXT: Input file: {{.*}}Other.h59// CHECK-NEXT: Input file: {{.*}}DependsOnModulePrivate.h60 61// CHECK: Diagnostic options:62// CHECK: IgnoreWarnings: Yes63// CHECK: Diagnostic flags:64// CHECK: -Wunused65