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] - Rev 689

Compare with Previous | Blame | View Log

/* Copyright (C) 2002 Free Software Foundation, Inc.  */
 
/* { dg-do run } */
/* { dg-options "-fshort-wchar" } */
/* { dg-options "-fshort-wchar -Wl,--no-wchar-size-warning" { target arm*-*-*eabi } } */
 
/* Source: Neil Booth, 10 Dec 2002.
 
   Test that __WCHAR_MAX__ is correct with -fshort-wchar.  */
 
extern void abort (void);
 
int main ()
{
  __WCHAR_TYPE__ w = ~(__WCHAR_TYPE__) 0;
 
  if (w != __WCHAR_MAX__)
    abort ();
 
  return 0;
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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