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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [pr15791-1.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* { 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.