1 | // RUN: rm -rf %t.cache |
2 | // RUN: echo '@import X;' | \ |
3 | // RUN: %clang_cc1 -fmodules -fimplicit-module-maps \ |
4 | // RUN: -fmodules-cache-path=%t.cache -I%S/Inputs/system-out-of-date \ |
5 | // RUN: -fsyntax-only -x objective-c - |
6 | // |
7 | // Build something with different diagnostic options. |
8 | // RUN: %clang_cc1 -fmodules -fimplicit-module-maps \ |
9 | // RUN: -fmodules-cache-path=%t.cache -I%S/Inputs/system-out-of-date \ |
10 | // RUN: -fsyntax-only %s -Wnon-modular-include-in-framework-module \ |
11 | // RUN: -Werror=non-modular-include-in-framework-module 2>&1 \ |
12 | // RUN: | FileCheck %s |
13 | @import X; |
14 | |
15 | #import <Z.h> |
16 | // CHECK: While building module 'Z' imported from |
17 | // CHECK: {{.*}}Y-{{.*}}pcm' was validated as a system module and is now being imported as a non-system module |
18 | |