summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures/feature_test.cpp
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-10-21 14:59:40 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-05-09 12:39:30 (GMT)
commitf5bf9d431166250257d4ff2716f74668b1fce16b (patch)
tree37089da7f067ecaf777454cf9fc8c79a029c0bd7 /Tests/CompileFeatures/feature_test.cpp
parent3547a00d77a5a894a2d9133ac61a6c9ed3dda5e2 (diff)
downloadCMake-f5bf9d431166250257d4ff2716f74668b1fce16b.zip
CMake-f5bf9d431166250257d4ff2716f74668b1fce16b.tar.gz
CMake-f5bf9d431166250257d4ff2716f74668b1fce16b.tar.bz2
Tests: Make CompileFeature tests use highest standard known.
Remove the use of check_cxx_source_compiles which is now just getting in the way. Blacklist the cxx_alignof feature in the test with GNU 4.7. The test file compiles, but it is documented as available first in GNU 4.8.
Diffstat (limited to 'Tests/CompileFeatures/feature_test.cpp')
-rw-r--r--Tests/CompileFeatures/feature_test.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/CompileFeatures/feature_test.cpp b/Tests/CompileFeatures/feature_test.cpp
new file mode 100644
index 0000000..4406c16
--- /dev/null
+++ b/Tests/CompileFeatures/feature_test.cpp
@@ -0,0 +1,10 @@
+
+#define STRINGIFY_IMPL(X) #X
+#define STRINGIFY(X) STRINGIFY_IMPL(X)
+
+#include STRINGIFY(TEST)
+
+int main()
+{
+ return 0;
+}