annotate tests/t16.c @ 90:594495750d84

If we get a malformed #include, print it. (both before and after macro expansion) This way the user has a fighting chance of figuring out what happened.
author David A. Holland
date Mon, 10 Jun 2013 22:00:06 -0400
parents 0cd5a1d55ed6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
52
ebdc6a4cb0f8 Test case for handling of missing arguments.
Joerg Sonnenberger <joerg@bec.de>
parents:
diff changeset
1 #define a() x
ebdc6a4cb0f8 Test case for handling of missing arguments.
Joerg Sonnenberger <joerg@bec.de>
parents:
diff changeset
2 a()
ebdc6a4cb0f8 Test case for handling of missing arguments.
Joerg Sonnenberger <joerg@bec.de>
parents:
diff changeset
3 a ()
ebdc6a4cb0f8 Test case for handling of missing arguments.
Joerg Sonnenberger <joerg@bec.de>
parents:
diff changeset
4 #define b(p) p
ebdc6a4cb0f8 Test case for handling of missing arguments.
Joerg Sonnenberger <joerg@bec.de>
parents:
diff changeset
5 x/**/b(1)/**/x
ebdc6a4cb0f8 Test case for handling of missing arguments.
Joerg Sonnenberger <joerg@bec.de>
parents:
diff changeset
6 x/**/b (1)/**/x
ebdc6a4cb0f8 Test case for handling of missing arguments.
Joerg Sonnenberger <joerg@bec.de>
parents:
diff changeset
7 x/**/b()/**/x
ebdc6a4cb0f8 Test case for handling of missing arguments.
Joerg Sonnenberger <joerg@bec.de>
parents:
diff changeset
8 #define c(p,q) p/**/q
ebdc6a4cb0f8 Test case for handling of missing arguments.
Joerg Sonnenberger <joerg@bec.de>
parents:
diff changeset
9 x/**/c(1,2)/**/x
ebdc6a4cb0f8 Test case for handling of missing arguments.
Joerg Sonnenberger <joerg@bec.de>
parents:
diff changeset
10 x/**/c(1)/**/x
ebdc6a4cb0f8 Test case for handling of missing arguments.
Joerg Sonnenberger <joerg@bec.de>
parents:
diff changeset
11 x/**/c()/**/x