(root)/
gcc-13.2.0/
gcc/
testsuite/
rust/
compile/
const1.rs
fn bar() {}

const fn foo() {
    bar(); // { dg-error "only functions marked as .const. are allowed to be called from constant contexts" }
}