forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add regression test for rust-lang#110698
- Loading branch information
1 parent
9a65a20
commit a692173
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#[repr(C)] | ||
pub struct Foo { | ||
field: u8, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Regression test for <https://github.com/rust-lang/rust/issues/110698>. | ||
// This test ensures that the re-exported items still have the `#[repr(...)]` attribute. | ||
|
||
// aux-build:repr.rs | ||
|
||
#![crate_name = "foo"] | ||
|
||
extern crate repr; | ||
|
||
// @has 'foo/struct.Foo.html' | ||
// @has - '//*[@class="rust item-decl"]//*[@class="code-attribute"]' '#[repr(C)]' | ||
#[doc(inline)] | ||
pub use repr::Foo; |