xref: /aosp_15_r20/external/clang/test/VFS/incomplete-umbrella.m (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li// RUN: rm -rf %t
2*67e74705SXin Li// RUN: mkdir -p %t/Incomplete.framework/Headers
3*67e74705SXin Li// RUN: echo '// IncompleteReal.h' > %t/Incomplete.framework/Headers/IncompleteReal.h
4*67e74705SXin Li// RUN: sed -e "s:INPUT_DIR:%S/Inputs:g" -e "s:OUT_DIR:%t:g" %S/Inputs/vfsoverlay.yaml > %t.yaml
5*67e74705SXin Li// RUN: not %clang_cc1 -Werror -fmodules -fimplicit-module-maps -fmodules-cache-path=%t \
6*67e74705SXin Li// RUN:     -ivfsoverlay %t.yaml -F %t -fsyntax-only %s 2>&1 | FileCheck %s
7*67e74705SXin Li// REQUIRES: shell
8*67e74705SXin Li
9*67e74705SXin Li@import Incomplete;
10*67e74705SXin Li// CHECK: umbrella header for module 'Incomplete' {{.*}}IncompleteVFS.h
11*67e74705SXin Li// CHECK: umbrella header for module 'Incomplete' {{.*}}IncompleteReal.h
12*67e74705SXin Li// CHECK: could not build module 'Incomplete'
13