aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-12-18 20:43:45 +0100
committerlemon <lsof@mailbox.org>2025-12-18 20:43:45 +0100
commit4ee0f45c1b1713521c2030de1f51290e50f546ff (patch)
tree1fdc71e14b2a1b56cb4af57c90380cc408ffea8a /test
parent51153d1951461d33fb7e4688af6a5b38caa68841 (diff)
cpp: GNU extension for named variadic arguments
Diffstat (limited to 'test')
-rw-r--r--test/07-pp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/07-pp.c b/test/07-pp.c
index 6a50571..47b9dbb 100644
--- a/test/07-pp.c
+++ b/test/07-pp.c
@@ -6,6 +6,7 @@ Foo,5 9 1506
join: "x ## y"
wide L"abc123 猫,€á💫", U+1f98b
Output ends here
+ok ...
*/
#include "07-pp.h"
@@ -31,6 +32,8 @@ u\
t\
s
+#define gnu_ext(a, c...) a(c)
+
#ifdef CMD_WORKING
int
main(V)
@@ -60,6 +63,7 @@ S\
* escapes the 0, ending the string early.
*/
);
+ gnu_ext(printf, "ok %s\n", "...");
CAT(ret,urn) 0;
}