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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr30313.c] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
 
3
static inline void bar(){}
4
 
5
struct S
6
{
7
#if __INT_MAX__ == 32767
8
  signed int i: 16;
9
#elif __INT_MAX__ == 2147483647
10
  signed int i: 32;
11
#elif __INT_MAX__ == 9223372036854775807
12
  signed int i: 64;
13
#else
14
#error Please add support for your target here
15
#endif
16
};
17
 
18
int main()
19
{
20
  struct S x = {32};
21
  sizeof(x.i+0);
22
  return 0;
23
}

powered by: WebSVN 2.1.0

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