Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/cpp/charconst-2.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* 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 } |