1 | // RUN: rm -rf %t |
2 | // RUN: %clang_cc1 -verify -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -F %S/Inputs/implicit-private-canonical -emit-pch -o %t-A.pch %s -Wprivate-module |
3 | |
4 | #ifndef HEADER |
5 | #define HEADER |
6 | |
7 | @import A.Private; // expected-warning {{no submodule named 'Private' in module 'A'; using top level 'A_Private'}} |
8 | // expected-note@Inputs/implicit-private-canonical/A.framework/Modules/module.private.modulemap:1{{module defined here}} |
9 | |
10 | const int *y = &APRIVATE; |
11 | |
12 | #endif |
13 | |