OSDN Git Service

PR c++/4222, c++/5995
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / static10.C
1 // Build don't link:
2 // Origin: Ulrich Drepper <drepper@cygnus.com>
3 // Special g++ Options: -w
4
5 struct st
6 {
7   int a;
8 };
9
10 int
11 foo (int a)
12 {
13   static const st i = { 0 };
14
15   if (i.a == a)
16     return 0;
17 }