2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / other / empty-class.C
blob1998fb95690608a1767320bbb14b3db7d4f4dde9
1 /* { dg-do compile } */
2 /* { dg-options "-fdump-tree-gimple" } */
4 /* Test that we return retval directly, instead of going through an
5    intermediate temporary, when returning an empty class.  */
7 class obj {
8   public:
9    obj(int);
12 obj funky(){
13     return obj(555);
16 /* { dg-final { scan-tree-dump-times "return <retval>;" 1 "gimple" } } */