Debian Codegraph @

gcc/testsuite/gcc.dg/cpp/uchar-3.c

raw
1 /* Copyright (C) 2002 Free Software Foundation, Inc. */
2
3 /* { dg-do compile } */
4 /* { dg-options "-funsigned-char -fpreprocessed" } */
5
6 /* Source: Ziemowit Laski. -fpreprocessed doesn't define macros, but
7 CPP would interpret charconsts based upon whether __CHAR_UNSIGNED__
8 was defined. */
9
10 int foo()
11 {
12 char f = 0x83;
13 if (f == '\x83') /* { dg-bogus "always false" } */
14 f = 0;
15
16 return 0;
17 }