2013-03-28 00:47:18 +08:00
|
|
|
|
|
|
|
@import DependsOnModule;
|
|
|
|
|
2016-08-18 07:13:53 +08:00
|
|
|
// RUN: rm -rf %t %t-obj
|
|
|
|
// 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 %s
|
2013-03-28 00:47:18 +08:00
|
|
|
// RUN: %clang_cc1 -module-file-info %t/DependsOnModule.pcm | FileCheck %s
|
2016-08-18 07:14:00 +08:00
|
|
|
// RUN: %clang_cc1 -module-file-info %t/DependsOnModule.pcm | FileCheck %s --check-prefix=RAW
|
2013-03-28 00:47:18 +08:00
|
|
|
|
2016-08-18 07:13:53 +08:00
|
|
|
// 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
|
|
|
|
// RUN: %clang_cc1 -module-file-info %t-obj/DependsOnModule.pcm | FileCheck %s
|
2016-08-18 07:14:00 +08:00
|
|
|
// RUN: %clang_cc1 -module-file-info %t-obj/DependsOnModule.pcm | FileCheck %s --check-prefix=OBJ
|
2016-08-18 07:13:53 +08:00
|
|
|
|
2016-08-18 07:14:00 +08:00
|
|
|
// RAW: Module format: raw
|
|
|
|
// OBJ: Module format: obj
|
2013-03-28 00:47:18 +08:00
|
|
|
// CHECK: Generated by this Clang:
|
|
|
|
|
2014-04-15 06:12:44 +08:00
|
|
|
// CHECK: Module name: DependsOnModule
|
|
|
|
// CHECK: Module map file: {{.*}}DependsOnModule.framework{{[/\\]}}module.map
|
2018-09-11 13:17:13 +08:00
|
|
|
// CHECK: Imports module 'Module': {{.*}}Module.pcm
|
2014-04-15 06:12:44 +08:00
|
|
|
|
2013-03-28 00:47:18 +08:00
|
|
|
// CHECK: Language options:
|
|
|
|
// CHECK: C99: Yes
|
2018-10-31 04:31:30 +08:00
|
|
|
// CHECK: Objective-C: Yes
|
2019-04-12 05:18:23 +08:00
|
|
|
// CHECK: modules semantics: Yes
|
2015-06-24 02:20:18 +08:00
|
|
|
// CHECK: Module features:
|
|
|
|
// CHECK: myfeature
|
2013-03-28 00:47:18 +08:00
|
|
|
|
|
|
|
// CHECK: Target options:
|
|
|
|
// CHECK: Triple:
|
2014-10-04 06:18:49 +08:00
|
|
|
// CHECK: CPU:
|
2020-08-27 05:44:25 +08:00
|
|
|
// CHECK: TuneCPU:
|
2014-10-04 06:18:49 +08:00
|
|
|
// CHECK: ABI:
|
2013-03-28 00:47:18 +08:00
|
|
|
|
|
|
|
// CHECK: Header search options:
|
|
|
|
// CHECK: System root [-isysroot=]: '/'
|
2017-02-26 02:14:31 +08:00
|
|
|
// CHECK: Resource dir [ -resource-dir=]: '{{.*}}clang{{.*}}'
|
2013-03-28 00:47:18 +08:00
|
|
|
// CHECK: Use builtin include directories [-nobuiltininc]: Yes
|
2014-10-04 06:18:49 +08:00
|
|
|
// CHECK: Use standard system include directories [-nostdinc]: No
|
2013-03-28 00:47:18 +08:00
|
|
|
// CHECK: Use standard C++ include directories [-nostdinc++]: Yes
|
|
|
|
// CHECK: Use libc++ (rather than libstdc++) [-stdlib=]:
|
|
|
|
|
|
|
|
// CHECK: Preprocessor options:
|
|
|
|
// CHECK: Uses compiler/target-specific predefines [-undef]: Yes
|
|
|
|
// CHECK: Uses detailed preprocessing record (for indexing): No
|
|
|
|
// CHECK: Predefined macros:
|
|
|
|
// CHECK: -DBLARG
|
|
|
|
// CHECK: -DWIBBLE=WOBBLE
|
2018-07-18 14:49:33 +08:00
|
|
|
// CHECK: Input file: {{.*}}DependsOnModulePrivate.h
|
|
|
|
// CHECK-NEXT: Input file: {{.*}}Other.h
|
|
|
|
// CHECK-NEXT: Input file: {{.*}}SubFramework.h
|
|
|
|
// CHECK-NEXT: Input file: {{.*}}not_coroutines.h
|
|
|
|
// CHECK-NEXT: Input file: {{.*}}not_cxx.h
|
|
|
|
// CHECK-NEXT: Input file: {{.*}}other.h
|
|
|
|
// CHECK-NEXT: Input file: {{.*}}module.map
|
|
|
|
// CHECK-NEXT: Input file: {{.*}}DependsOnModule.h
|
|
|
|
// CHECK-NEXT: Input file: {{.*}}module_private.map
|
|
|
|
// CHECK-NEXT: Input file: {{.*}}module.map
|
2017-03-14 02:45:08 +08:00
|
|
|
|
|
|
|
// CHECK: Diagnostic options:
|
|
|
|
// CHECK: IgnoreWarnings: Yes
|
|
|
|
// CHECK: Diagnostic flags:
|
|
|
|
// CHECK: -Wunused
|