OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr38422.c] - Blame information for rev 320

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

Line No. Rev Author Line
1 297 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.