[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Modules / preprocess-unavailable.cpp
blobcfd18253daf73f6c52ae0c8f0dd313b6ef54a53f
1 // RUN: %clang_cc1 -x c++-module-map %s -fmodule-name=a -verify -std=c++98
2 module a {
3 module b {
4 requires cplusplus11
7 #pragma clang module contents
8 // expected-error@3 {{module 'a.b' requires feature 'cplusplus11'}}
9 #pragma clang module begin a.b // expected-note {{entering module 'a' due to this pragma}}
10 int f();
11 int g() { f(); }
12 #pragma clang module end // expected-error {{no matching '#pragma clang module begin'}}