rust/tests/ui/meta/no_std-extern-libc.rs
2024-05-20 11:13:10 -04:00

9 lines
238 B
Rust

// Test that `download-rustc` doesn't put duplicate copies of libc in the sysroot.
//@ check-pass
//@ ignore-windows doesn't necessarily have the libc crate
#![crate_type = "lib"]
#![no_std]
#![feature(rustc_private)]
extern crate libc;