Actually introduce a cycle in Reffy test.

This commit is contained in:
jumbatm 2020-08-16 10:26:45 +10:00
parent db753137a1
commit 154b74e8f9

View File

@ -89,28 +89,30 @@ mod ref_recursion_once_removed {
mod a {
#[repr(C)]
struct Reffy1<'a> {
reffy: &'a Reffy1<'a>,
}
struct Reffy2<'a> {
reffy: &'a Reffy2<'a>,
}
struct Reffy2<'a> {
reffy: &'a Reffy1<'a>,
}
extern "C" {
#[allow(improper_ctypes)]
fn reffy_once_removed(reffy: Reffy1);
}
}
mod b {
#[repr(C)]
struct Reffy1<'a> {
reffy: &'a Reffy1<'a>,
}
struct Reffy2<'a> {
reffy: &'a Reffy2<'a>,
}
struct Reffy2<'a> {
reffy: &'a Reffy1<'a>,
}
extern "C" {
#[allow(improper_ctypes)]
fn reffy_once_removed(reffy: Reffy1);
}
}