Bruno Cardoso Lopes | 03e0d2d | 2018-06-27 20:29:36 +0000 | [diff] [blame] | 1 | // 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 | |
| 16 | int bar() { return foo(); } |
| 17 | |