Debian Codegraph @

gcc/testsuite/g++.dg/opt/inline16.C

raw
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" } }
5
6 static inline int *fromSlotB(void)
7 {
8 static int shuf_BZZZ = 1;
9 return &shuf_BZZZ;
10 }
11
12 int *p;
13
14 int main(void)
15 {
16 p = fromSlotB();
17 return (*p != 1);
18 }
19