Ben Langmuir | b92de02 | 2014-04-29 16:25:26 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
| 2 | // RUN: rm -rf %t-saved |
| 3 | // RUN: mkdir %t-saved |
| 4 | |
| 5 | // Initial module build |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 6 | // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -fdisable-module-hash \ |
Justin Bogner | fa9df7a | 2014-10-03 22:18:49 +0000 | [diff] [blame] | 7 | // RUN: -isystem %S/Inputs/System/usr/include -fsyntax-only %s -verify |
Ben Langmuir | b92de02 | 2014-04-29 16:25:26 +0000 | [diff] [blame] | 8 | // RUN: cp %t/cstd.pcm %t-saved/cstd.pcm |
| 9 | |
| 10 | // Even with -Werror don't rebuild a system module |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 11 | // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -fdisable-module-hash \ |
Justin Bogner | fa9df7a | 2014-10-03 22:18:49 +0000 | [diff] [blame] | 12 | // RUN: -isystem %S/Inputs/System/usr/include -fsyntax-only %s -verify -Werror |
Ben Langmuir | b92de02 | 2014-04-29 16:25:26 +0000 | [diff] [blame] | 13 | // RUN: diff %t/cstd.pcm %t-saved/cstd.pcm |
| 14 | |
| 15 | // Unless -Wsystem-headers is on |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 16 | // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -fdisable-module-hash \ |
Justin Bogner | fa9df7a | 2014-10-03 22:18:49 +0000 | [diff] [blame] | 17 | // RUN: -isystem %S/Inputs/System/usr/include -fsyntax-only %s -verify \ |
Ben Langmuir | b92de02 | 2014-04-29 16:25:26 +0000 | [diff] [blame] | 18 | // RUN: -Werror=unused -Wsystem-headers |
| 19 | // RUN: not diff %t/cstd.pcm %t-saved/cstd.pcm |
| 20 | |
| 21 | // expected-no-diagnostics |
| 22 | @import cstd; |