Skip to content

Commit 34cf164

Browse files
committed
Add a test for rust-lang#1914 and rust-lang#1915
1 parent 1f9e7c2 commit 34cf164

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

tests/source/issue-1914.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// rustfmt-max_width: 80
2+
3+
extern "C" {
4+
#[link_name = "_ZN7MyClass26example_check_no_collisionE"]
5+
pub static mut MyClass_example_check_no_collision : * const :: std :: os :: raw :: c_int ;
6+
}

tests/target/issue-1914.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// rustfmt-max_width: 80
2+
3+
extern "C" {
4+
#[link_name = "_ZN7MyClass26example_check_no_collisionE"]
5+
pub static mut MyClass_example_check_no_collision:
6+
*const ::std::os::raw::c_int;
7+
}

0 commit comments

Comments
 (0)