Commit 62b0fa2e authored by yangguo's avatar yangguo Committed by Commit bot

Allow C++11 in unittests.

BUG=v8:6072

Review-Url: https://codereview.chromium.org/2741573003
Cr-Commit-Position: refs/heads/master@{#43712}
parent f66d934b
...@@ -275,16 +275,7 @@ TEST(CPlusPlus11Features) { ...@@ -275,16 +275,7 @@ TEST(CPlusPlus11Features) {
S s{true, {3.1415, {1, 2, 3}}}; S s{true, {3.1415, {1, 2, 3}}};
CHECK_EQ(2, s.t.z[1]); CHECK_EQ(2, s.t.z[1]);
// TODO(svenpanne) Remove the old-skool code when we ship the new C++ headers.
#if 0
std::vector<int> vec{11, 22, 33, 44}; std::vector<int> vec{11, 22, 33, 44};
#else
std::vector<int> vec;
vec.push_back(11);
vec.push_back(22);
vec.push_back(33);
vec.push_back(44);
#endif
vec.push_back(55); vec.push_back(55);
vec.push_back(66); vec.push_back(66);
for (auto& i : vec) { for (auto& i : vec) {
......
...@@ -255,18 +255,6 @@ ...@@ -255,18 +255,6 @@
'<(icu_gyp_path):icuuc', '<(icu_gyp_path):icuuc',
], ],
}], }],
['os_posix == 1', {
# TODO(svenpanne): This is a temporary work-around to fix the warnings
# that show up because we use -std=gnu++0x instead of -std=c++11.
'cflags!': [
'-pedantic',
],
'direct_dependent_settings': {
'cflags!': [
'-pedantic',
],
},
}],
], ],
}, },
], ],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment