blob: 529c7ac9d75fca0d6fecd1bdcfadfdddab106dcb [file] [log] [blame]
Douglas Gregor7cdd2812012-11-07 17:46:15 +00001// Test that if we modify one of the input files used to form a
2// header, that module and dependent modules get rebuilt.
3
4// RUN: rm -rf %t
5// RUN: mkdir -p %t/include
6// RUN: cp %S/Inputs/Modified/A.h %t/include
7// RUN: cp %S/Inputs/Modified/B.h %t/include
8// RUN: cp %S/Inputs/Modified/module.map %t/include
9// RUN: %clang_cc1 -fmodule-cache-path %t/cache -fmodules -I %t/include %s -verify
10// expected-no-diagnostics
Douglas Gregor299c22f2012-12-11 22:25:26 +000011// RUN: echo '' >> %t/include/B.h
Douglas Gregor7cdd2812012-11-07 17:46:15 +000012// RUN: %clang_cc1 -fmodule-cache-path %t/cache -fmodules -I %t/include %s -verify
13// RUN: echo 'int getA(); int getA2();' > %t/include/A.h
14// RUN: %clang_cc1 -fmodule-cache-path %t/cache -fmodules -I %t/include %s -verify
15
NAKAMURA Takumi0faaa162012-12-12 00:51:38 +000016// FIXME: It is intended to suppress this on win32.
17// REQUIRES: ansi-escape-sequences
18
Douglas Gregor1b257af2012-12-11 22:11:52 +000019@import B;
Douglas Gregor7cdd2812012-11-07 17:46:15 +000020
21int getValue() { return getA() + getB(); }
22
23
24
25
26