diff options
Diffstat (limited to 'clang/test/Modules/global_index.m')
-rw-r--r-- | clang/test/Modules/global_index.m | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/clang/test/Modules/global_index.m b/clang/test/Modules/global_index.m index f183b1f94c0..0c8fca0cfd6 100644 --- a/clang/test/Modules/global_index.m +++ b/clang/test/Modules/global_index.m @@ -1,13 +1,20 @@ // RUN: rm -rf %t +// Run without global module index +// RUN: %clang_cc1 -Wauto-import -fmodule-cache-path %t -fdisable-module-hash -fmodules -F %S/Inputs %s -verify +// RUN: ls %t|not grep modules.idx +// Run and create the global module index // RUN: %clang_cc1 -Wauto-import -fmodule-cache-path %t -fdisable-module-hash -fmodules -fmodules-global-index -F %S/Inputs %s -verify // RUN: ls %t|grep modules.idx -// RUN: %clang_cc1 -Wauto-import -fmodule-cache-path %t -fdisable-module-hash -fmodules -fmodules-global-index -F %S/Inputs %s -verify +// Run and use the global module index +// RUN: %clang_cc1 -Wauto-import -fmodule-cache-path %t -fdisable-module-hash -fmodules -fmodules-global-index -F %S/Inputs %s -verify -print-stats 2>&1 | FileCheck %s // REQUIRES: shell // expected-no-diagnostics @import DependsOnModule; @import Module; +// CHECK: *** Global Module Index Statistics: + int *get_sub() { return Module_Sub; } |