summaryrefslogtreecommitdiffstats
path: root/tests/ui/test-attrs/test-main-not-dead-attr.rs
blob: 0b2a9a3541b39346a057aa246d42d9b7df41a49f (plain)
1
2
3
4
5
6
7
8
9
// run-pass
// compile-flags: --test

#![feature(rustc_attrs)]

#![deny(dead_code)]

#[rustc_main]
fn foo() { panic!(); }