summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-04-04 13:05:10 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-04-08 09:05:57 (GMT)
commitf9d04a96b57ad5f68259b978983289043ae22716 (patch)
treeb428a2248c6ba0bef5fb86a64f7af646bf797e91 /Tests/CompileFeatures
parent3d76656fb3db56f364bbf7a7655ab1433b72d284 (diff)
downloadCMake-f9d04a96b57ad5f68259b978983289043ae22716.zip
CMake-f9d04a96b57ad5f68259b978983289043ae22716.tar.gz
CMake-f9d04a96b57ad5f68259b978983289043ae22716.tar.bz2
Features: Add cxx_variadic_macros.
Diffstat (limited to 'Tests/CompileFeatures')
-rw-r--r--Tests/CompileFeatures/cxx_variadic_macros.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/Tests/CompileFeatures/cxx_variadic_macros.cpp b/Tests/CompileFeatures/cxx_variadic_macros.cpp
new file mode 100644
index 0000000..4d007a5
--- /dev/null
+++ b/Tests/CompileFeatures/cxx_variadic_macros.cpp
@@ -0,0 +1,12 @@
+
+int someFunc(int, char, int)
+{
+ return 0;
+}
+
+#define FUNC_WRAPPER(...) someFunc(__VA_ARGS__)
+
+void otherFunc()
+{
+ FUNC_WRAPPER(42, 'a', 7);
+}