Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git] / gcc / testsuite / g++.dg / ubsan / pr68508.C
blobffe8f0071dbc5a41c7e75863b735722696fc9d8a
1 // PR c++/68508
2 // { dg-do compile }
3 // { dg-options "-std=c++14 -fsanitize=vptr" }
5 struct A
7   virtual int foo () { return 0; }
8 };
10 const A &
11 bar ()
13   static A x = A ();
14   return (x);