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