// RUN: %clang_cc1 -x c++-module-map %s -fmodule-name=a -verify
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'}}

// 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'}}

Add an explicit -std= to test to unbreak on PS4 targets.
Add an explicit -std= to test to unbreak on PS4 targets.


git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@304237 91177308-0d34-0410-b5e6-96231b3b80d8
