mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-27 07:19:03 -04:00

Using @import in framework headers inhibit the use of such headers when not using modules, this is specially bad for headers that end up in the SDK (or any other system framework). Add a warning to give users some indication that this is discouraged. rdar://problem/39192894 llvm-svn: 335780
18 lines
472 B
Objective-C
18 lines
472 B
Objective-C
// REQUIRES: shell
|
|
|
|
// RUN: rm -rf %t
|
|
// RUN: mkdir %t
|
|
|
|
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/cache \
|
|
// RUN: -F%S/Inputs/at-import-in-framework-header -I%S/Inputs/at-import-in-framework-header \
|
|
// RUN: -Watimport-in-framework-header -fsyntax-only %s \
|
|
// RUN: 2>%t/stderr
|
|
// RUN: FileCheck --input-file=%t/stderr %s
|
|
|
|
// CHECK: use of '@import' in framework header is discouraged
|
|
|
|
#import <A/A.h>
|
|
|
|
int bar() { return foo(); }
|
|
|