fortran/openmp.cc: Fix var init and locus use to avoid uninit values [PR fortran...
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / auto-fn24.C
blobe9bbc735b4da77f06751c4261491e3ad502d90a2
1 // PR c++/60314
2 // { dg-do compile { target c++14 } }
3 // { dg-options "-g" }
5 // fine
6 decltype(auto) qux() { return 42; }
8 struct foo
10   // also ICEs if not static 
11   static decltype(auto) bar()
12   { return 42; }