mirror of
https://github.com/allankoechke/rust.git
synced 2026-11-30 17:26:12 +00:00
12 lines
227 B
Rust
12 lines
227 B
Rust
//@ build-pass
|
|
//@ compile-flags: -Clink-dead-code
|
|
//! Check that we don't try to generate assembly for comptime
|
|
//! fns, even when link-dead-code is active.
|
|
|
|
#![feature(rustc_attrs)]
|
|
|
|
#[rustc_comptime]
|
|
fn f() {}
|
|
|
|
fn main() {}
|