3 // Copyright (C) 2003 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 19 Apr 2003 <nathan@codesourcery.com>
6 // PR 9881. address-constant-expression not static initialized
13 static bool error = false;
18 static double storage;
25 if (foo::b != &foo::storage)
30 baz f; // Get constructor to run before any other non-static initializers
32 double *foo::a = &(((bar *)(&v))->p);
33 double *foo::b = &(((bar *)(&foo::storage))->p);
34 double foo::storage = 0.0;