blob: b630ac105874593e531238e3e24659802c4939f0 [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
11// RUN: touch %t/include/B.h
12// 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
16@__experimental_modules_import B;
17
18int getValue() { return getA() + getB(); }
19
20
21
22
23