9 lines · cpp
1// Make sure we treat includes that are part of modulemaps the same as textual2// headers when modules are not enabled (e.g do't generate import decls, but3// still perform layering checks).4// No need to pass -fno-modules explicitly, absence implies negation for cc1.5// RUN: %clang_cc1 -I %S/Inputs/modulemaps-nomodules -fmodule-map-file=%S/Inputs/modulemaps-nomodules/module.modulemap %s -verify -ast-dump | FileCheck %s6 7#include "header.h" // expected-error{{use of private header from outside its module: 'header.h'}}8// CHECK-NOT: ImportDecl9