blob: 8693d2b89497c2148d57f24156fcc98177c24934 [file] [log] [blame]
Douglas Gregorbf7fc9c2013-03-27 16:47:18 +00001
2@import DependsOnModule;
3
4// RUN: rm -rf %t
Ben Langmuircd98cb72015-06-23 18:20:18 +00005// RUN: %clang_cc1 -w -Wunused -fmodules -fimplicit-module-maps -fdisable-module-hash -fmodules-cache-path=%t -F %S/Inputs -DBLARG -DWIBBLE=WOBBLE -fmodule-feature myfeature %s
Douglas Gregorbf7fc9c2013-03-27 16:47:18 +00006// RUN: %clang_cc1 -module-file-info %t/DependsOnModule.pcm | FileCheck %s
7
8// CHECK: Generated by this Clang:
9
Ben Langmuir4f5212a2014-04-14 22:12:44 +000010// CHECK: Module name: DependsOnModule
11// CHECK: Module map file: {{.*}}DependsOnModule.framework{{[/\\]}}module.map
12
Douglas Gregorbf7fc9c2013-03-27 16:47:18 +000013// CHECK: Language options:
14// CHECK: C99: Yes
15// CHECK: Objective-C 1: Yes
16// CHECK: modules extension to C: Yes
Ben Langmuircd98cb72015-06-23 18:20:18 +000017// CHECK: Module features:
18// CHECK: myfeature
Douglas Gregorbf7fc9c2013-03-27 16:47:18 +000019
20// CHECK: Target options:
21// CHECK: Triple:
Justin Bognerfa9df7a2014-10-03 22:18:49 +000022// CHECK: CPU:
23// CHECK: ABI:
Douglas Gregorbf7fc9c2013-03-27 16:47:18 +000024
Ben Langmuirb92de022014-04-29 16:25:26 +000025// CHECK: Diagnostic options:
26// CHECK: IgnoreWarnings: Yes
Richard Smith3be1cb22014-08-07 00:24:21 +000027// CHECK: Diagnostic flags:
Ben Langmuirb92de022014-04-29 16:25:26 +000028// CHECK: -Wunused
29
Douglas Gregorbf7fc9c2013-03-27 16:47:18 +000030// CHECK: Header search options:
31// CHECK: System root [-isysroot=]: '/'
32// CHECK: Use builtin include directories [-nobuiltininc]: Yes
Justin Bognerfa9df7a2014-10-03 22:18:49 +000033// CHECK: Use standard system include directories [-nostdinc]: No
Douglas Gregorbf7fc9c2013-03-27 16:47:18 +000034// CHECK: Use standard C++ include directories [-nostdinc++]: Yes
35// CHECK: Use libc++ (rather than libstdc++) [-stdlib=]:
36
37// CHECK: Preprocessor options:
38// CHECK: Uses compiler/target-specific predefines [-undef]: Yes
39// CHECK: Uses detailed preprocessing record (for indexing): No
40// CHECK: Predefined macros:
41// CHECK: -DBLARG
42// CHECK: -DWIBBLE=WOBBLE