summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures/cxx_enum_forward_declarations.cpp
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-04-06 08:37:08 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-04-08 09:05:57 (GMT)
commit16603f7cdb76ad4f9377d583b5234d92f85dd22d (patch)
treeef14240b716a7ee97645bdb059098fd636b1e899 /Tests/CompileFeatures/cxx_enum_forward_declarations.cpp
parentadf22f611e2e4213df31cc7e1d8c1513847b72ff (diff)
downloadCMake-16603f7cdb76ad4f9377d583b5234d92f85dd22d.zip
CMake-16603f7cdb76ad4f9377d583b5234d92f85dd22d.tar.gz
CMake-16603f7cdb76ad4f9377d583b5234d92f85dd22d.tar.bz2
Features: Add cxx_enum_forward_declarations.
Diffstat (limited to 'Tests/CompileFeatures/cxx_enum_forward_declarations.cpp')
-rw-r--r--Tests/CompileFeatures/cxx_enum_forward_declarations.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/CompileFeatures/cxx_enum_forward_declarations.cpp b/Tests/CompileFeatures/cxx_enum_forward_declarations.cpp
new file mode 100644
index 0000000..a7e1445
--- /dev/null
+++ b/Tests/CompileFeatures/cxx_enum_forward_declarations.cpp
@@ -0,0 +1,8 @@
+
+enum SomeEnum : short;
+
+void someFunc()
+{
+ SomeEnum value;
+ int i = value;
+}