diff options
Diffstat (limited to 'clang/test/Modules/unnecessary-module-map-parsing.c')
| -rw-r--r-- | clang/test/Modules/unnecessary-module-map-parsing.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Modules/unnecessary-module-map-parsing.c b/clang/test/Modules/unnecessary-module-map-parsing.c new file mode 100644 index 00000000000..621bb0195dd --- /dev/null +++ b/clang/test/Modules/unnecessary-module-map-parsing.c @@ -0,0 +1,8 @@ +// This checks that we are not parsing module maps if modules are not enabled. + +// RUN: not %clang_cc1 -fmodules -I %S/unnecessary-module-map-parsing -fsyntax-only %s 2>&1 | FileCheck %s +// RUN: %clang_cc1 -I %S/unnecessary-module-map-parsing -fsyntax-only %s + +// CHECK: error: header 'unknown.h' not found + +#include "a1.h" |

