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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20040331-1.c] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
/* PR c++/14755 */
2
extern void abort (void);
3
extern void exit (int);
4
 
5
int
6
main (void)
7
{
8
#if __INT_MAX__ >= 2147483647
9
  struct { int count: 31; } s = { 0 };
10
  while (s.count--)
11
    abort ();
12
#elif __INT_MAX__ >= 32767
13
  struct { int count: 15; } s = { 0 };
14
  while (s.count--)
15
    abort ();
16
#else
17
  /* Don't bother because __INT_MAX__ is too small.  */
18
#endif
19
  exit (0);
20
}

powered by: WebSVN 2.1.0

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