brintos

brintos / llvm-project-archived public Read only

0
0
Text · 433 B · cfd1825 Raw
13 lines · cpp
1// RUN: %clang_cc1 -x c++-module-map %s -fmodule-name=a -verify -std=c++982module a {3  module b {4    requires cplusplus115  }6}7#pragma clang module contents8// 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}}10int f();11int g() { f(); }12#pragma clang module end // expected-error {{no matching '#pragma clang module begin'}}13