about summary refs log tree commit diff
path: root/tests/ui/mir/const_eval_select_cycle.rs
blob: 0b84455b2f7fb1107afaf899a245e4408ee996a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Regression test for #122659
//@ build-pass
//@ compile-flags: -O --crate-type=lib

#![feature(core_intrinsics)]
#![feature(const_eval_select)]

use std::intrinsics::const_eval_select;

#[inline]
pub const fn f() {
    const_eval_select((), g, g)
}

#[inline]
pub const fn g() {
    const_eval_select((), f, f)
}