PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / opt / inline16.C
blob6ee6d76d925dfbf3e8bf31df6a1649d54e477e60
1 // PR c++/36959
2 // We shouldn't have to emit fromSlotB just because we need shuf_BZZZ.
3 // { dg-options -O }
4 // { dg-final { scan-assembler-not "_ZL9fromSlotBv" } }
6 static inline int *fromSlotB(void)
8   static int shuf_BZZZ = 1;
9   return &shuf_BZZZ;
12 int *p;
14 int main(void)
16   p = fromSlotB();
17   return (*p != 1);