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.c-torture/] [execute/] [20071211-1.c] - Blame information for rev 298

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

Line No. Rev Author Line
1 297 jeremybenn
extern void abort() __attribute__ ((noreturn));
2
 
3
struct s
4
{
5
  unsigned long long f1 : 40;
6
#if(__SIZEOF_INT__ >= 4)
7
  unsigned int f2 : 24;
8
#else
9
  unsigned long int f2 : 24;
10
#endif
11
} sv;
12
 
13
int main()
14
{
15
  int f2;
16
  sv.f2 = (1 << 24) - 1;
17
  __asm__ volatile ("" : : : "memory");
18
  ++sv.f2;
19
  f2 = sv.f2;
20
  if (f2 != 0)
21
    abort();
22
  return 0;
23
}

powered by: WebSVN 2.1.0

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