Douglas Gregor | f4e76b8 | 2013-05-20 13:49:41 +0000 | [diff] [blame] | 1 | @import incomplete_mod; |
| 2 | |
| 3 | // RUN: rm -rf %t |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 4 | // RUN: %clang_cc1 -fmodules-cache-path=%t -Wincomplete-module -fmodules -fimplicit-module-maps -I %S/Inputs %s 2>&1 | FileCheck %s |
Manman Ren | 70a7738 | 2016-10-21 23:27:37 +0000 | [diff] [blame] | 5 | // CHECK: warning: include of non-modular header inside module 'incomplete_mod': {{'.*incomplete_mod_missing.h'}} |
Ben Langmuir | 6caebfd | 2014-11-05 16:43:18 +0000 | [diff] [blame] | 6 | |
| 7 | // RUN: rm -rf %t |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 8 | // RUN: not %clang_cc1 -fmodules-cache-path=%t -fmodules-strict-decluse -fmodules -fimplicit-module-maps -I %S/Inputs %s 2>&1 | FileCheck %s -check-prefix=DECLUSE |
Ben Langmuir | 6caebfd | 2014-11-05 16:43:18 +0000 | [diff] [blame] | 9 | // DECLUSE: error: module incomplete_mod does not depend on a module exporting {{'.*incomplete_mod_missing.h'}} |