OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [uchar-3.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* 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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.