annotate gcc/testsuite/gcc.dg/pr77520.c @ 144:8f4e72ab4e11

fix segmentation fault caused by nothing next cur_op to end
author Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Sun, 23 Dec 2018 21:23:56 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* PR c/77520 - wrong value for extended ASCII characters in -Wformat message
kono
parents:
diff changeset
2 Verify that characters in the extended ASCII range are quoted and not
kono
parents:
diff changeset
3 allowed to be printed raw. */
kono
parents:
diff changeset
4 /* { dg-do compile } */
kono
parents:
diff changeset
5 /* { dg-options "-Wformat" } */
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 void f (void)
kono
parents:
diff changeset
8 {
kono
parents:
diff changeset
9 __builtin_printf ("%\x80"); /* { dg-warning "unknown conversion type character .\\\\x80. in format" } */
kono
parents:
diff changeset
10 }