summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/abi/guard1.C
blob: 76b43d30f366e42ddeaae712148eaf45515b7b6e (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/41611
// { dg-final { scan-assembler-not "_ZGVZN1A1fEvE1i" } }

struct A {
  static int f()
  {
    static int &i = *new int();
    return i;
  }
};