Bruno Cardoso Lopes | 84bc0a2 | 2017-12-22 05:04:43 +0000 | [diff] [blame] | 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 |