OSDN Git Service

PR c/15444
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 15 May 2004 00:44:02 +0000 (00:44 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 15 May 2004 00:44:02 +0000 (00:44 +0000)
commit448748a4ffb8191534a16145b3b1e90f131ab208
tree5a17c82d4a869e1134d2e5c2dbe9cf8ab06adb7d
parentde91b75fc50d73b6a589827d145a535e8db97c1d
PR c/15444
* c-format.c (avoid_dollar_number): New function.
(check_format_info_main): Call avoid_dollar_number when operand
numbers might occur but has_operand_number == 0.

testsuite:
* gcc.dg/format/xopen-1.c: Adjust expected message.
* gcc.dg/format/xopen-3.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81871 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-format.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/format/xopen-1.c
gcc/testsuite/gcc.dg/format/xopen-3.c [new file with mode: 0644]