summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config.tests/common/c++98default/c++98default.cpp4
-rw-r--r--configure.json10
2 files changed, 7 insertions, 7 deletions
diff --git a/config.tests/common/c++98default/c++98default.cpp b/config.tests/common/c++98default/c++98default.cpp
index 5edcf2d76c..3ff92eda33 100644
--- a/config.tests/common/c++98default/c++98default.cpp
+++ b/config.tests/common/c++98default/c++98default.cpp
@@ -37,8 +37,8 @@
**
****************************************************************************/
-#if __cplusplus >= 201103L
-#error "compiler uses c++11 or higher by default"
+#if __cplusplus < 201103L
+#error "compiler does not use c++11 or higher by default"
#endif
int main(int, char **) {}
diff --git a/configure.json b/configure.json
index 85ef23a186..0ff808519c 100644
--- a/configure.json
+++ b/configure.json
@@ -281,8 +281,8 @@
"type": "compile",
"test": "common/c++1z"
},
- "cxx98default": {
- "label": "compiler defaulting to C++98",
+ "cxx11default": {
+ "label": "compiler defaulting to C++11 or higher",
"type": "compile",
"test": "common/c++98default"
},
@@ -483,9 +483,9 @@
"condition": "call.crossCompile",
"output": [ "publicConfig", "privateConfig" ]
},
- "cxx98default": {
- "label": "Compiler defaults to C++98",
- "condition": "tests.cxx98default",
+ "cxx11default": {
+ "label": "Compiler defaults to C++11 or higher",
+ "condition": "!tests.cxx11default",
"output": [ { "type": "publicConfig", "name": "c++11" } ]
},
"compiler-flags": {