Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/opt/inline15.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
14 { | 14 { |
15 void *operator new (size_t x, B &y) { return y.foo (); } | 15 void *operator new (size_t x, B &y) { return y.foo (); } |
16 }; | 16 }; |
17 struct C : public A | 17 struct C : public A |
18 { | 18 { |
19 virtual int bar () { } | 19 virtual int bar () { return 0; } |
20 }; | 20 }; |
21 struct D : public C | 21 struct D : public C |
22 { | 22 { |
23 static B baz (unsigned *x) { B b; new (b) D (x); return b; } | 23 static B baz (unsigned *x) { B b; new (b) D (x); return b; } |
24 D (unsigned *x) { } | 24 D (unsigned *x) { } |
31 }; | 31 }; |
32 | 32 |
33 static unsigned * | 33 static unsigned * |
34 fn2 () | 34 fn2 () |
35 { | 35 { |
36 return 0; | |
36 } | 37 } |
37 | 38 |
38 void | 39 void |
39 test (P x) | 40 test (P x) |
40 { | 41 { |