Skip to content

Commit 9f16db6

Browse files
Regression test
1 parent 49ae52e commit 9f16db6

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#[unsafe(no_mangle)]
2+
pub fn f0() {}
3+
4+
#[unsafe(link_section = ".here")]
5+
pub fn f1() {}
6+
7+
#[unsafe(export_name = "f2export")]
8+
pub fn f2() {}
9+
10+
#[repr(u8)]
11+
pub enum T0 { V1 }
12+
13+
#[non_exhaustive]
14+
pub enum T1 {}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
//@ aux-build: reexports-attrs.rs
2+
3+
#![crate_name = "foo"]
4+
5+
extern crate reexports_attrs;
6+
7+
//@ has 'foo/fn.f0.html' '//pre[@class="rust item-decl"]' '#[no_mangle]'
8+
pub use reexports_attrs::f0;
9+
10+
//@ has 'foo/fn.f1.html' '//pre[@class="rust item-decl"]' '#[link_section = ".here"]'
11+
pub use reexports_attrs::f1;
12+
13+
//@ has 'foo/fn.f2.html' '//pre[@class="rust item-decl"]' '#[export_name = "f2export"]'
14+
pub use reexports_attrs::f2;
15+
16+
//@ has 'foo/enum.T0.html' '//pre[@class="rust item-decl"]' '#[repr(u8)]'
17+
pub use reexports_attrs::T0;
18+
19+
//@ has 'foo/enum.T1.html' '//pre[@class="rust item-decl"]' '#[non_exhaustive]'
20+
pub use reexports_attrs::T1;

0 commit comments

Comments
 (0)