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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [20011008-2.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do run } */
2
/* { dg-options "-O0" } */
3
 
4
extern void abort (void);
5
extern void exit (int);
6
 
7
struct { union {int x; int y;}; int q; } b;
8
union { struct {int x;}; int q; } e;
9
 
10
main()
11
{
12
  b.y = 10;
13
  b.x = 15;
14
  if (b.y != 15)
15
    abort();
16
 
17
  e.x = 10;
18
  e.q = 15;
19
  if (e.x != 15)
20
    abort();
21
 
22
  exit(0);
23
}

powered by: WebSVN 2.1.0

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