1*2e374b6cSRichard Smith // RUN: %clang_cc1 -x c++-module-map %s -fmodule-name=a -verify -std=c++98 251d09c51SRichard Smith module a { 351d09c51SRichard Smith module b { 451d09c51SRichard Smith requires cplusplus11 551d09c51SRichard Smith } 651d09c51SRichard Smith } 751d09c51SRichard Smith #pragma clang module contents 851d09c51SRichard Smith // expected-error@3 {{module 'a.b' requires feature 'cplusplus11'}} 951d09c51SRichard Smith #pragma clang module begin a.b // expected-note {{entering module 'a' due to this pragma}} 1051d09c51SRichard Smith int f(); g()1151d09c51SRichard Smithint g() { f(); } 1251d09c51SRichard Smith #pragma clang module end // expected-error {{no matching '#pragma clang module begin'}} 13