OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [fshort-wchar.c] - Blame information for rev 149

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 "-fshort-wchar" } */
5
 
6
/* Source: Neil Booth, 10 Dec 2002.
7
 
8
   Test that __WCHAR_MAX__ is correct with -fshort-wchar.  */
9
 
10
extern void abort (void);
11
 
12
int main ()
13
{
14
  __WCHAR_TYPE__ w = ~(__WCHAR_TYPE__) 0;
15
 
16
  if (w != __WCHAR_MAX__)
17
    abort ();
18
 
19
  return 0;
20
}

powered by: WebSVN 2.1.0

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