1// RUN: rm -rf %t
2// RUN: mkdir %t
3
4// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/cache \
5// RUN:   -F%S/Inputs/at-import-in-framework-header -I%S/Inputs/at-import-in-framework-header \
6// RUN:   -Watimport-in-framework-header -fsyntax-only %s \
7// RUN:   2>%t/stderr
8// RUN: FileCheck --input-file=%t/stderr %s
9
10// CHECK: use of '@import' in framework header is discouraged
11
12#import <A/A.h>
13
14int bar() { return foo(); }
15
16