32 lines · plain
1// Test that if we modify one of the input files used to form a2// header, that module and dependent modules get rebuilt.3 4// RUN: rm -rf %t5// RUN: mkdir -p %t/include6// RUN: cat %S/Inputs/Modified/A.h > %t/include/A.h7// RUN: cat %S/Inputs/Modified/B.h > %t/include/B.h8// RUN: cat %S/Inputs/Modified/module.modulemap > %t/include/module.modulemap9// RUN: %clang_cc1 -fdisable-module-hash -fmodules-cache-path=%t/cache -fmodules -fimplicit-module-maps -I %t/include %s -verify10// RUN: echo '' >> %t/include/B.h11// RUN: %clang_cc1 -fdisable-module-hash -fmodules-cache-path=%t/cache -fmodules -fimplicit-module-maps -I %t/include %s -verify12// RUN: echo 'int getA(); int getA2();' > %t/include/A.h13// RUN: %clang_cc1 -fdisable-module-hash -fmodules-cache-path=%t/cache -fmodules -fimplicit-module-maps -I %t/include %s -verify14// RUN: rm %t/cache/ModA.pcm15// RUN: %clang_cc1 -fdisable-module-hash -fmodules-cache-path=%t/cache -fmodules -fimplicit-module-maps -I %t/include %s -verify16// RUN: touch %t/cache/ModA.pcm17// RUN: %clang_cc1 -fdisable-module-hash -fmodules-cache-path=%t/cache -fmodules -fimplicit-module-maps -I %t/include %s -verify18 19// expected-no-diagnostics20 21// FIXME: It is intended to suppress this on win32.22// REQUIRES: ansi-escape-sequences23 24@import ModB;25 26int getValue() { return getA() + getB(); }27 28 29 30 31 32