summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/warn-ctypes-inhibit.rs
blob: 15d8b09d2ecfc0989932817ae3c210012c0c60e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// run-pass

#![allow(dead_code)]
// compile-flags:-D improper-ctypes

// pretty-expanded FIXME #23616
#![allow(improper_ctypes)]

mod libc {
    extern "C" {
        pub fn malloc(size: isize) -> *const u8;
    }
}

pub fn main() {}