Be careful about comdat boundary in ICF (PR ipa/82352).
[official-gcc.git] / gcc / testsuite / g++.dg / ext / stmtexpr19.C
blob0c19a210f709b10c576593f0812bee18ca36e5ef
1 // PR c++/81073
2 // { dg-options "" }
3 // { dg-do compile { target c++11 } }
5 struct test { const int *addr; };
7 const test* setup()
9   static constexpr test atest =
10     {
11       ({ static const int inner = 123; &inner; }) // { dg-error "static" }
12     };
14   return &atest;
17 int main(){}