RISC-V: Disable Zba optimization pattern if XTheadMemIdx is enabled
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / auto-fn38.C
blob4e541625eec8ac7be24c5eb27e5ebeb842d9e54b
1 // PR c++/80145
2 // { dg-do compile { target c++14 } }
3 // { dg-additional-options "-Wno-return-type" }
5 auto* foo() { }  // { dg-error "no return statements" }
6 auto* foo();