Fix testcases for PR c/78304
authorDavid Malcolm <dmalcolm@redhat.com>
Mon, 16 Jan 2017 18:08:45 +0000 (18:08 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Mon, 16 Jan 2017 18:08:45 +0000 (18:08 +0000)
commit0ef1f9cd8c7a799a91b7d9ac776a4a8d3adaefa5
tree69fe741f3d37e866225d72a8186ced2465b1a3cd
parent76689ffc1ef69892e36b9ca7d1efb9438d51d0b2
Fix testcases for PR c/78304

The testcases as written made assumptions about size_t and long
being invalid for use with "%u".

We only need some invalid type, so this patch converts them to
attempt a "const char *" with "%u", which should be invalid for
every target.

gcc/testsuite/ChangeLog:
PR c/78304
* gcc.dg/format/pr78304.c: Convert argument from integral type
to a pointer.
* gcc.dg/format/pr78304-2.c: Likewise.

From-SVN: r244502
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/format/pr78304-2.c
gcc/testsuite/gcc.dg/format/pr78304.c