[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Modules / modulemaps-nomodules.cpp
blobeec024fa24b479f2db450876af7a01344fb5c3b5
1 // Make sure we treat includes that are part of modulemaps the same as textual
2 // headers when modules are not enabled (e.g do't generate import decls, but
3 // 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 %s
7 #include "header.h" // expected-error{{use of private header from outside its module: 'header.h'}}
8 // CHECK-NOT: ImportDecl