OSDN Git Service

* c-common.c (c_common_init): Set up CPP arithmetic.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / cpp / tr-sign.c
1 /* Copyright (C) 2001 Free Software Foundation, Inc.  */
2
3 /* { dg-do preprocess { target i?86-*-* } } */
4
5 /* { dg-options "-traditional" } */
6
7 /* Tests that traditional numbers are signed, unless otherwise
8    specified.  This test assumes a 32 bit target.
9
10    Neil Booth, 5 Aug 2001.  Inspired by PR 3824.  */
11
12 #if 0xffffffff >= 0
13 # error 0xffffffff      /* { dg-bogus "0xffffffff" "0xffffffff positive" } */
14 #endif
15
16 #if 0xffffffffU <= 0
17 # error 0xffffffffU     /* { dg-bogus "0xffffffffU" "0xffffffffU negative" } */
18 #endif