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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr38422.c] - Blame information for rev 774

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

Line No. Rev Author Line
1 688 jeremybenn
/* PR middle-end/38422 */
2
 
3
extern void abort (void);
4
 
5
struct S
6
{
7
  int s : (sizeof (int) * __CHAR_BIT__ - 2);
8
} s;
9
 
10
void
11
foo (void)
12
{
13
  s.s *= 2;
14
}
15
 
16
int
17
main ()
18
{
19
  s.s = 24;
20
  foo ();
21
  if (s.s != 48)
22
    abort ();
23
  return 0;
24
}

powered by: WebSVN 2.1.0

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