1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
// PR c++/20681 // { dg-options -Wreturn-type } struct a{~a();a();}; int GetMetaCombination (int a2) { a bi; switch (a2) { case 1: return 18; break;//removing this works around the warning default: return 0; } }