summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/static10.C
blob: 16b152453ee190cbc0ce22774f12e6d45aaca7cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-do assemble  }
// { dg-options "-w" }
// Origin: Ulrich Drepper <drepper@cygnus.com>

struct st
{
  int a;
};

int
foo (int a)
{
  static const st i = { 0 };

  if (i.a == a)
    return 0;
}