summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-04-04 11:54:08 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-04-08 09:05:56 (GMT)
commite7d6e1f44f0f3bcf7ded76ec8d649b7a0552778c (patch)
treede0fcbb4d64adc851fde71e15f58afe798b5fe04 /Tests
parent32c2acd65c3d48433a50a6c2f9fc00c2a1a699f4 (diff)
downloadCMake-e7d6e1f44f0f3bcf7ded76ec8d649b7a0552778c.zip
CMake-e7d6e1f44f0f3bcf7ded76ec8d649b7a0552778c.tar.gz
CMake-e7d6e1f44f0f3bcf7ded76ec8d649b7a0552778c.tar.bz2
Features: Add cxx_alignas.
cxx_alignof will be a separate feature known to CMake, because both can be implemented with separate backward compatibility versions.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CompileFeatures/cxx_alignas.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/CompileFeatures/cxx_alignas.cpp b/Tests/CompileFeatures/cxx_alignas.cpp
new file mode 100644
index 0000000..35b7c82
--- /dev/null
+++ b/Tests/CompileFeatures/cxx_alignas.cpp
@@ -0,0 +1,4 @@
+
+struct S1 {
+ alignas(8) int n;
+};