2014-04-30 00:25:26 +08:00
|
|
|
// RUN: rm -rf %t
|
|
|
|
// RUN: rm -rf %t-saved
|
|
|
|
// RUN: mkdir %t-saved
|
|
|
|
|
|
|
|
// Initial module build
|
2015-06-16 08:08:24 +08:00
|
|
|
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -fdisable-module-hash \
|
2014-10-04 06:18:49 +08:00
|
|
|
// RUN: -isystem %S/Inputs/System/usr/include -fsyntax-only %s -verify
|
2014-04-30 00:25:26 +08:00
|
|
|
// RUN: cp %t/cstd.pcm %t-saved/cstd.pcm
|
|
|
|
|
|
|
|
// Even with -Werror don't rebuild a system module
|
2015-06-16 08:08:24 +08:00
|
|
|
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -fdisable-module-hash \
|
2014-10-04 06:18:49 +08:00
|
|
|
// RUN: -isystem %S/Inputs/System/usr/include -fsyntax-only %s -verify -Werror
|
2014-04-30 00:25:26 +08:00
|
|
|
// RUN: diff %t/cstd.pcm %t-saved/cstd.pcm
|
|
|
|
|
|
|
|
// Unless -Wsystem-headers is on
|
2015-06-16 08:08:24 +08:00
|
|
|
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -fdisable-module-hash \
|
2014-10-04 06:18:49 +08:00
|
|
|
// RUN: -isystem %S/Inputs/System/usr/include -fsyntax-only %s -verify \
|
2014-04-30 00:25:26 +08:00
|
|
|
// RUN: -Werror=unused -Wsystem-headers
|
|
|
|
// RUN: not diff %t/cstd.pcm %t-saved/cstd.pcm
|
|
|
|
|
|
|
|
// expected-no-diagnostics
|
|
|
|
@import cstd;
|