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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [charconst-2.c] - Blame information for rev 823

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* Copyright (C) 2001 Free Software Foundation, Inc.  */
2
 
3
/* { dg-do compile } */
4
/* { dg-options "-fsigned-char" } */
5
 
6
/* Crosscompiling from i686-linux (32-bit) to x86_64-linux (64-bit)
7
   gave extra warnings on the two assignments:
8
   warning: large integer implicitly truncated to unsigned type
9
   warning: overflow in implicit constant conversion
10
   This test has been added as a regression test after fixing the bug
11
   by Andreas Jaeger, 23 Nov 2001.  */
12
int
13
main (void)
14
{
15
  signed char c = '\xff';
16
  unsigned char d = '\xff';
17
 
18
  return 0;
19
}

powered by: WebSVN 2.1.0

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