2012-11-08 01:46:15 +08:00
|
|
|
// Test that if we modify one of the input files used to form a
|
|
|
|
// header, that module and dependent modules get rebuilt.
|
|
|
|
|
|
|
|
// RUN: rm -rf %t
|
|
|
|
// RUN: mkdir -p %t/include
|
|
|
|
// RUN: cp %S/Inputs/Modified/A.h %t/include
|
|
|
|
// RUN: cp %S/Inputs/Modified/B.h %t/include
|
|
|
|
// RUN: cp %S/Inputs/Modified/module.map %t/include
|
2015-06-16 08:08:24 +08:00
|
|
|
// RUN: %clang_cc1 -fdisable-module-hash -fmodules-cache-path=%t/cache -fmodules -fimplicit-module-maps -I %t/include %s -verify
|
2012-12-12 06:25:26 +08:00
|
|
|
// RUN: echo '' >> %t/include/B.h
|
2015-06-16 08:08:24 +08:00
|
|
|
// RUN: %clang_cc1 -fdisable-module-hash -fmodules-cache-path=%t/cache -fmodules -fimplicit-module-maps -I %t/include %s -verify
|
2012-11-08 01:46:15 +08:00
|
|
|
// RUN: echo 'int getA(); int getA2();' > %t/include/A.h
|
2015-06-16 08:08:24 +08:00
|
|
|
// RUN: %clang_cc1 -fdisable-module-hash -fmodules-cache-path=%t/cache -fmodules -fimplicit-module-maps -I %t/include %s -verify
|
2013-03-21 09:08:50 +08:00
|
|
|
// RUN: rm %t/cache/ModA.pcm
|
2015-06-16 08:08:24 +08:00
|
|
|
// RUN: %clang_cc1 -fdisable-module-hash -fmodules-cache-path=%t/cache -fmodules -fimplicit-module-maps -I %t/include %s -verify
|
2013-03-21 09:08:50 +08:00
|
|
|
// RUN: touch %t/cache/ModA.pcm
|
2015-06-16 08:08:24 +08:00
|
|
|
// RUN: %clang_cc1 -fdisable-module-hash -fmodules-cache-path=%t/cache -fmodules -fimplicit-module-maps -I %t/include %s -verify
|
2013-03-19 08:28:20 +08:00
|
|
|
|
|
|
|
// expected-no-diagnostics
|
2012-11-08 01:46:15 +08:00
|
|
|
|
2012-12-12 08:51:38 +08:00
|
|
|
// FIXME: It is intended to suppress this on win32.
|
|
|
|
// REQUIRES: ansi-escape-sequences
|
|
|
|
|
2013-03-21 09:08:50 +08:00
|
|
|
@import ModB;
|
2012-11-08 01:46:15 +08:00
|
|
|
|
|
|
|
int getValue() { return getA() + getB(); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|