unit_tests/preprocessor/errors/too-many-macro-args
author Ryan C. Gordon <icculus@icculus.org>
Thu, 09 Apr 2009 11:06:06 -0400
changeset 749 4e0837f91f12
permissions -rw-r--r--
Added unit test for too many macro args.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
749
4e0837f91f12 Added unit test for too many macro args.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     1
// This should produce an error, not anything like "WRONG 7 )"
4e0837f91f12 Added unit test for too many macro args.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     2
#define x(a) a
4e0837f91f12 Added unit test for too many macro args.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     3
x(WRONG, 7)