Debian Codegraph @

gcc/testsuite/g++.dg/ipa/pr98075.C

raw
1 /* PR ipa/98075 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fno-inline" } */
4
5 template <typename BS>
6 class xg {
7 public:
8 BS *
9 fw ()
10 {
11 return static_cast<BS *> (operator new (sizeof (BS)));
12 }
13 };
14
15 class zp : xg<int> {
16 public:
17 __attribute__ ((always_inline)) zp ()
18 {
19 hy = xg<int>::fw ();
20 }
21
22 private:
23 int *hy;
24 };
25
26 void
27 e5 ()
28 {
29 zp ix;
30 }