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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [volatile-bitfields-2.c] - Blame information for rev 774

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do run } */
2
/* { dg-options "-fstrict-volatile-bitfields" } */
3
 
4
extern void abort(void);
5
struct thing {
6
  volatile unsigned short a: 8;
7
  volatile unsigned short b: 8;
8
} t = {1,2};
9
 
10
int main()
11
{
12
  t.a = 3;
13
  if (t.a !=3 || t.b !=2) abort();
14
  return 0;
15
}

powered by: WebSVN 2.1.0

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