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/] [wchar-1.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) 2002 Free Software Foundation, Inc.  */
2
 
3
/* { dg-do run } */
4
/* { dg-options "-w" } */
5
 
6
/* Source: Neil Booth, 24 Feb 2002.
7
 
8
   Test if compiler and preprocessor agree on signeness of wide
9
   chars.  */
10
 
11
int main ()
12
{
13
  __WCHAR_TYPE__ c = -1;
14
 
15
#if L'\x0' - 1 < 0
16
  if (c > 0)
17
    abort ();
18
#else
19
  if (c < 0)
20
    abort ();
21
#endif
22
 
23
  return 0;
24
}

powered by: WebSVN 2.1.0

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