blob: fe3663812075db104458a08c9a0cfe7b0a84f292 [file] [log] [blame]
Bruno Cardoso Lopes03e0d2d2018-06-27 20:29:36 +00001// REQUIRES: shell
2
3// RUN: rm -rf %t
4// RUN: mkdir %t
5
6// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/cache \
7// RUN: -F%S/Inputs/at-import-in-framework-header -I%S/Inputs/at-import-in-framework-header \
8// RUN: -Watimport-in-framework-header -fsyntax-only %s \
9// RUN: 2>%t/stderr
10// RUN: FileCheck --input-file=%t/stderr %s
11
12// CHECK: use of '@import' in framework header is discouraged
13
14#import <A/A.h>
15
16int bar() { return foo(); }
17