aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/stmtexpr19.C
blob: 5355c15df9a8fa9b057dbf6037535f2b241a8b44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PR c++/81073
// { dg-options "" }
// { dg-do link { target c++11 } }

struct test { const int *addr; };

const test* setup()
{
  static constexpr test atest =
    {
      ({ static const int inner = 123; &inner; })
    };

  return &atest;
}

int main(){}