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