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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [fshort-wchar.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* Copyright (C) 2002 Free Software Foundation, Inc.  */
2
 
3
/* { dg-do run } */
4
/* { dg-options "-fshort-wchar" } */
5
/* { dg-options "-fshort-wchar -Wl,--no-wchar-size-warning" { target arm*-*-*eabi } } */
6
 
7
/* Source: Neil Booth, 10 Dec 2002.
8
 
9
   Test that __WCHAR_MAX__ is correct with -fshort-wchar.  */
10
 
11
extern void abort (void);
12
 
13
int main ()
14
{
15
  __WCHAR_TYPE__ w = ~(__WCHAR_TYPE__) 0;
16
 
17
  if (w != __WCHAR_MAX__)
18
    abort ();
19
 
20
  return 0;
21
}

powered by: WebSVN 2.1.0

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