summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-09 19:18:24 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-01-15 21:13:22 (GMT)
commit1f4649e62f6394a6e9af67486e4c41f3e286de47 (patch)
treed2ffb68e4a63099dc5e1edfb8fe7c582e1d27c48 /Tests
parenta60027a642f887179513496ef61552db44829652 (diff)
downloadCMake-1f4649e62f6394a6e9af67486e4c41f3e286de47.zip
CMake-1f4649e62f6394a6e9af67486e4c41f3e286de47.tar.gz
CMake-1f4649e62f6394a6e9af67486e4c41f3e286de47.tar.bz2
Features: Update the default_dialect test for old GNU-like compilers.
Prior to GNU 4.7, GNU defined __cplusplus incorrectly, and defined __GXX_EXPERIMENTAL_CXX0X__ in C++11 mode.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CompileFeatures/default_dialect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/CompileFeatures/default_dialect.cpp b/Tests/CompileFeatures/default_dialect.cpp
index 8d97926..a2ca268 100644
--- a/Tests/CompileFeatures/default_dialect.cpp
+++ b/Tests/CompileFeatures/default_dialect.cpp
@@ -14,7 +14,7 @@ Outputter<__cplusplus> o;
# if !DEFAULT_CXX98
# error Buildsystem error
# endif
-# if __cplusplus != 199711L
+# if __cplusplus != 199711L && __cplusplus != 1 && !defined(__GXX_EXPERIMENTAL_CXX0X__)
Outputter<__cplusplus> o;
# endif
#endif