| 1 |
// RUN: rm -rf %t |
| 2 |
// Run without global module index |
| 3 |
// RUN: %clang_cc1 -Rmodule-include-translation -Wno-private-module -fmodules-cache-path=%t -fdisable-module-hash -fmodules -fimplicit-module-maps -fno-modules-global-index -F %S/Inputs %s -verify |
| 4 |
// RUN: ls %t|not grep modules.idx |
| 5 |
// Run and create the global module index |
| 6 |
// RUN: %clang_cc1 -Rmodule-include-translation -Wno-private-module -fmodules-cache-path=%t -fdisable-module-hash -fmodules -fimplicit-module-maps -F %S/Inputs %s -verify |
| 7 |
// RUN: ls %t|grep modules.idx |
| 8 |
// Run and use the global module index |
| 9 |
// RUN: %clang_cc1 -Rmodule-include-translation -Wno-private-module -fmodules-cache-path=%t -fdisable-module-hash -fmodules -fimplicit-module-maps -F %S/Inputs %s -verify -print-stats 2>&1 | FileCheck %s |
| 10 |
|
| 11 |
// expected-no-diagnostics |
| 12 |
@import DependsOnModule; |
| 13 |
@import Module; |
| 14 |
|
| 15 |
// CHECK: *** Global Module Index Statistics: |
| 16 |
|
| 17 |
int *get_sub(void) { |
| 18 |
return Module_Sub; |
| 19 |
} |