summaryrefslogtreecommitdiffstats
path: root/test/Modules/preprocess-unavailable.cpp
blob: cfd18253daf73f6c52ae0c8f0dd313b6ef54a53f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -x c++-module-map %s -fmodule-name=a -verify -std=c++98
module a {
  module b {
    requires cplusplus11
  }
}
#pragma clang module contents
// expected-error@3 {{module 'a.b' requires feature 'cplusplus11'}}
#pragma clang module begin a.b // expected-note {{entering module 'a' due to this pragma}}
int f();
int g() { f(); }
#pragma clang module end // expected-error {{no matching '#pragma clang module begin'}}