summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/abi/local2.C
blob: f56701610f17e8c64e897d99c70fe0a3583e9f0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PR c++/42010
// { dg-final { scan-assembler "ZZN1A1fEvE1s" } }

struct A {
  static int f()
  {
    static struct {
      int i;
    } s;
    return s.i;
  }
};

int main()
{
  return A::f();
}