about summary refs log tree commit diff
path: root/tests/ui/proc-macro/expand-with-a-macro.rs
blob: aa02cefbec6848777a926827e165e5a59a8ebcfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//@ run-pass
//@ needs-unwind
//@ proc-macro: expand-with-a-macro.rs
//@ ignore-backends: gcc


#![deny(warnings)]

#[macro_use]
extern crate expand_with_a_macro;

use std::panic;

#[derive(A)]
struct A;

fn main() {
    assert!(panic::catch_unwind(|| {
        A.a();
    }).is_err());
}