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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [tree-ssa/] [pr15791-1.C] - Blame information for rev 853

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

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do link } */
2
 
3
void link_error ();
4
 
5
int main ()
6
{
7
  struct { int b[2]; } x;
8
  int b[2];
9
  if (&b[1] != &b[1])
10
    link_error ();
11
  if (&b[0] != b)
12
    link_error ();
13
  if (b == &b[2])
14
    link_error ();
15
  if (b != b)
16
    link_error ();
17
  if (&x.b[1] == &x.b[0])
18
    link_error ();
19
  if (x.b != &x.b[0])
20
    link_error ();
21
  if (&x.b[1] == x.b)
22
    link_error ();
23
  return 0;
24
}
25
 

powered by: WebSVN 2.1.0

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