Bruno Cardoso Lopes | b907563 | 2017-04-27 22:29:14 +0000 | [diff] [blame] | 1 | // 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' | ||||
11 | int foo() { | ||||
12 | int a = BAR_PUBLIC; | ||||
13 | int b = BAZ_PRIVATE; | ||||
14 | return 0; | ||||
15 | } |