]> git.lizzy.rs Git - rust.git/blob - src/test/ui/repr/repr-transparent-issue-87496.rs
Override rustc version in ui and mir-opt tests to get stable hashes
[rust.git] / src / test / ui / repr / repr-transparent-issue-87496.rs
1 // Regression test for the ICE described in #87496.
2
3 // check-pass
4
5 #[repr(transparent)]
6 struct TransparentCustomZst(());
7 extern "C" {
8     fn good17(p: TransparentCustomZst);
9     //~^ WARNING: `extern` block uses type `TransparentCustomZst`, which is not FFI-safe
10 }
11
12 fn main() {}