summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.old-deja/g++.other/static10.C
blob: 432e07b9aca3a867403b5eb54a487502baeb211e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Build don't link:
// Origin: Ulrich Drepper <drepper@cygnus.com>
// Special g++ Options: -w

struct st
{
  int a;
};

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

  if (i.a == a)
    return 0;
}
OpenPOWER on IntegriCloud