blob: 8760b815718b2ee8a0ab6e2904d4f4c2a55066e0 [file] [log] [blame]
Bruno Cardoso Lopesb9075632017-04-27 22:29:14 +00001// RUN: rm -rf %t
2// RUN: not %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -F%S/Inputs/incomplete-umbrella -fsyntax-only %s 2>&1 | FileCheck %s
3
4#import <Foo/Foo.h>
5#import <Foo/Bar.h>
6#import <Foo/Baz.h>
7@import Foo.Private;
8
9// CHECK: warning: umbrella header for module 'Foo' does not include header 'Bar.h'
10// CHECK: warning: umbrella header for module 'Foo.Private' does not include header 'Baz.h'
11int foo() {
12 int a = BAR_PUBLIC;
13 int b = BAZ_PRIVATE;
14 return 0;
15}