Bruno Cardoso Lopes | 5bccc52 | 2018-02-16 00:12:57 +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 -fsyntax-only %s -Wprivate-module -fmodule-name=A -Rmodule-build |
| 3 | |
| 4 | // Because of -fmodule-name=A, no module (A or A_Private) is supposed to be |
| 5 | // built and -Rmodule-build should not produce any output. |
| 6 | |
| 7 | // expected-no-diagnostics |
| 8 | |
| 9 | #import <A/a.h> |
| 10 | #import <A/aprivate.h> |
| 11 | |
| 12 | int foo() { return APRIVATE; } |