summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/decl7.C
blob: cc9e3a98342e4bf86497fb5915c4390bcda1b4d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do assemble  }
// Origin: Mark Mitchell <mark@codesourcery.com>

struct S 
{
  void* sp;
};

void* f ()
{
  struct S s = { &s.sp };
  return s.sp;
}