xref: /minix3/external/bsd/llvm/dist/clang/test/Modules/incomplete-module.m (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1f4a2713aSLionel Sambuc@import incomplete_mod;
2f4a2713aSLionel Sambuc
3f4a2713aSLionel Sambuc// RUN: rm -rf %t
4f4a2713aSLionel Sambuc// RUN: %clang_cc1 -fmodules-cache-path=%t -Wincomplete-module -fmodules -I %S/Inputs %s 2>&1 | FileCheck %s
5*0a6a1f1dSLionel Sambuc// CHECK: warning: include of non-modular header inside module 'incomplete_mod'
6*0a6a1f1dSLionel Sambuc
7*0a6a1f1dSLionel Sambuc// RUN: rm -rf %t
8*0a6a1f1dSLionel Sambuc// RUN: not %clang_cc1 -fmodules-cache-path=%t -fmodules-strict-decluse -fmodules -I %S/Inputs %s 2>&1 | FileCheck %s -check-prefix=DECLUSE
9*0a6a1f1dSLionel Sambuc// DECLUSE: error: module incomplete_mod does not depend on a module exporting {{'.*incomplete_mod_missing.h'}}
10