# HG changeset patch # User Joerg Sonnenberger # Date 1364702864 -7200 # Node ID ebdc6a4cb0f8583424bd593079d802c1e359d599 # Parent bec1eb5ac3263c47ff252ea685151ab2bf53125a Test case for handling of missing arguments. diff -r bec1eb5ac326 -r ebdc6a4cb0f8 tests/t13.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/t13.c Sun Mar 31 06:07:44 2013 +0200 @@ -0,0 +1,11 @@ +#define a() x +a() +a () +#define b(p) p +x/**/b(1)/**/x +x/**/b (1)/**/x +x/**/b()/**/x +#define c(p,q) p/**/q +x/**/c(1,2)/**/x +x/**/c(1)/**/x +x/**/c()/**/x diff -r bec1eb5ac326 -r ebdc6a4cb0f8 tests/t13.good --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/t13.good Sun Mar 31 06:07:44 2013 +0200 @@ -0,0 +1,10 @@ +x +x +x1x +x1x +xx +x12x +t13.c:10:1: Wrong number of arguments for macro c; found 1, expected 2 +x1x +t13.c:11:1: Wrong number of arguments for macro c; found 0, expected 2 +xx