Debian Codegraph @

clang/test/Modules/at-import-in-framework-header.m

raw
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
14 int bar(void) { return foo(); }
15