8sa1-gcc/gcc/testsuite/g++.old-deja/g++.other/static10.C
Mark Mitchell 1f1479dc91 decl.c (make_rtl_for_local_static): Don't create register RTL for addressable constants.
* decl.c (make_rtl_for_local_static): Don't create register RTL
	for addressable constants.

From-SVN: r29945
1999-10-13 16:13:25 +00:00

18 lines
201 B
C

// 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;
}