xref: /minix3/external/bsd/llvm/dist/clang/test/Modules/unnecessary-module-map-parsing.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1 // This checks that we are not parsing module maps if modules are not enabled.
2 
3 // RUN: not %clang_cc1 -fmodules -I %S/Inputs/unnecessary-module-map-parsing -fsyntax-only %s 2>&1 | FileCheck %s
4 // RUN: %clang_cc1 -I %S/Inputs/unnecessary-module-map-parsing -fsyntax-only %s
5 
6 // CHECK: error: expected umbrella, header, submodule, or module export
7 
8 #include "a1.h"
9