diff options
Diffstat (limited to 'Tests/CompileFeatures/cxx_variadic_macros.cpp')
-rw-r--r-- | Tests/CompileFeatures/cxx_variadic_macros.cpp | 12 |
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); +} |