Douglas Gregor | c544ba0 | 2013-03-27 16:47:18 +0000 | [diff] [blame] | 1 | |
| 2 | @import DependsOnModule; |
| 3 | |
| 4 | // RUN: rm -rf %t |
Stephen Hines | 6bcf27b | 2014-05-29 04:14:42 -0700 | [diff] [blame] | 5 | // RUN: %clang_cc1 -w -Wunused -fmodules -fdisable-module-hash -fmodules-cache-path=%t -F %S/Inputs -DBLARG -DWIBBLE=WOBBLE %s |
Douglas Gregor | c544ba0 | 2013-03-27 16:47:18 +0000 | [diff] [blame] | 6 | // RUN: %clang_cc1 -module-file-info %t/DependsOnModule.pcm | FileCheck %s |
| 7 | |
| 8 | // CHECK: Generated by this Clang: |
| 9 | |
Stephen Hines | 6bcf27b | 2014-05-29 04:14:42 -0700 | [diff] [blame] | 10 | // CHECK: Module name: DependsOnModule |
| 11 | // CHECK: Module map file: {{.*}}DependsOnModule.framework{{[/\\]}}module.map |
| 12 | |
Douglas Gregor | c544ba0 | 2013-03-27 16:47:18 +0000 | [diff] [blame] | 13 | // CHECK: Language options: |
| 14 | // CHECK: C99: Yes |
| 15 | // CHECK: Objective-C 1: Yes |
| 16 | // CHECK: modules extension to C: Yes |
| 17 | |
| 18 | // CHECK: Target options: |
| 19 | // CHECK: Triple: |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 20 | // CHECK: CPU: |
| 21 | // CHECK: ABI: |
Stephen Hines | 6bcf27b | 2014-05-29 04:14:42 -0700 | [diff] [blame] | 22 | |
| 23 | // CHECK: Diagnostic options: |
| 24 | // CHECK: IgnoreWarnings: Yes |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 25 | // CHECK: Diagnostic flags: |
Stephen Hines | 6bcf27b | 2014-05-29 04:14:42 -0700 | [diff] [blame] | 26 | // CHECK: -Wunused |
Douglas Gregor | c544ba0 | 2013-03-27 16:47:18 +0000 | [diff] [blame] | 27 | |
| 28 | // CHECK: Header search options: |
| 29 | // CHECK: System root [-isysroot=]: '/' |
| 30 | // CHECK: Use builtin include directories [-nobuiltininc]: Yes |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 31 | // CHECK: Use standard system include directories [-nostdinc]: No |
Douglas Gregor | c544ba0 | 2013-03-27 16:47:18 +0000 | [diff] [blame] | 32 | // CHECK: Use standard C++ include directories [-nostdinc++]: Yes |
| 33 | // CHECK: Use libc++ (rather than libstdc++) [-stdlib=]: |
| 34 | |
| 35 | // CHECK: Preprocessor options: |
| 36 | // CHECK: Uses compiler/target-specific predefines [-undef]: Yes |
| 37 | // CHECK: Uses detailed preprocessing record (for indexing): No |
| 38 | // CHECK: Predefined macros: |
| 39 | // CHECK: -DBLARG |
| 40 | // CHECK: -DWIBBLE=WOBBLE |