blob: 529c7ac9d75fca0d6fecd1bdcfadfdddab106dcb [file] [log] [blame]
// 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
// RUN: %clang_cc1 -fmodule-cache-path %t/cache -fmodules -I %t/include %s -verify
// expected-no-diagnostics
// RUN: echo '' >> %t/include/B.h
// RUN: %clang_cc1 -fmodule-cache-path %t/cache -fmodules -I %t/include %s -verify
// RUN: echo 'int getA(); int getA2();' > %t/include/A.h
// RUN: %clang_cc1 -fmodule-cache-path %t/cache -fmodules -I %t/include %s -verify
// FIXME: It is intended to suppress this on win32.
// REQUIRES: ansi-escape-sequences
@import B;
int getValue() { return getA() + getB(); }