1 // Test that if we modify one of the input files used to form a
2 // header, that module and dependent modules get rebuilt.
5 // RUN: mkdir -p %t/include
6 // RUN: cat %S/Inputs/Modified/A.h > %t/include/A.h
7 // RUN: cat %S/Inputs/Modified/B.h > %t/include/B.h
8 // RUN: cat %S/Inputs/Modified/module.modulemap > %t/include/module.modulemap
9 // RUN: %clang_cc1 -fdisable-module-hash -fmodules-cache-path=%t/cache -fmodules -fimplicit-module-maps -I %t/include %s -verify
10 // RUN: echo '' >> %t/include/B.h
11 // RUN: %clang_cc1 -fdisable-module-hash -fmodules-cache-path=%t/cache -fmodules -fimplicit-module-maps -I %t/include %s -verify
12 // RUN: echo 'int getA(); int getA2();' > %t/include/A.h
13 // RUN: %clang_cc1 -fdisable-module-hash -fmodules-cache-path=%t/cache -fmodules -fimplicit-module-maps -I %t/include %s -verify
14 // RUN: rm %t/cache/ModA.pcm
15 // RUN: %clang_cc1 -fdisable-module-hash -fmodules-cache-path=%t/cache -fmodules -fimplicit-module-maps -I %t/include %s -verify
16 // RUN: touch %t/cache/ModA.pcm
17 // RUN: %clang_cc1 -fdisable-module-hash -fmodules-cache-path=%t/cache -fmodules -fimplicit-module-maps -I %t/include %s -verify
19 // expected-no-diagnostics
21 // FIXME: It is intended to suppress this on win32.
22 // REQUIRES: ansi-escape-sequences
26 int getValue() { return getA() + getB(); }