summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/tree-ssa/pr15791-2.C
blob: fb8cbbe4c82b57e44bc5cf0e5e2f45869630181e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do link } */
/* { dg-options "" } */

void link_error ();
struct a {};
int main ()
{
  struct a b[2];
  if (&b[0] == &b[1])
    link_error ();
  return 0;
}