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 |
5 | } |
6 | } |
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'}} |
13 |