4coder/test_data/sample_files/parser_test7.cpp

15 lines
368 B
C++
Raw Normal View History

2018-03-16 18:19:11 +00:00
/*
* THIS TESTS:
* - true compliant variadic macro
* (for the various extensions test elsewhere!)
* - variadic macro, properly defined
* - variadic macro, properly invoked
* - variadic macro, properly invoked with blank parameter
*/
#define DOSHOW(str, ...) show("SUPER: "str"\n", __VA_ARGS__)
DOSHOW("%d, %d", x, y);
DOSHOW("else",);