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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [pr42611.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* PR other/42611 */
2
/* { dg-do compile } */
3
/* { dg-options "" } */
4
 
5
#define L \
6
  (sizeof (__SIZE_TYPE__) == 1 ? __SCHAR_MAX__                          \
7
  : sizeof (__SIZE_TYPE__) == sizeof (short) ? __SHRT_MAX__             \
8
  : sizeof (__SIZE_TYPE__) == sizeof (int) ? __INT_MAX__                \
9
  : sizeof (__SIZE_TYPE__) == sizeof (long) ? __LONG_MAX__              \
10
  : sizeof (__SIZE_TYPE__) == sizeof (long long) ? __LONG_LONG_MAX__    \
11
  : __INTMAX_MAX__)
12
struct S { int a; char b[L]; };
13
 
14
void
15
foo (void)
16
{
17
  struct S s;                           /* { dg-error "is too large" } */
18
  asm volatile ("" : : "r" (&s));
19
}

powered by: WebSVN 2.1.0

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