From 58ff6cc6681c23cbb10311c2bb2d884f00f9bf24 Mon Sep 17 00:00:00 2001 From: Eljay Date: Mon, 29 Jun 2015 21:27:10 +0100 Subject: [PATCH] Add test for #26646. --- src/test/run-pass/issue-26646.rs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/test/run-pass/issue-26646.rs diff --git a/src/test/run-pass/issue-26646.rs b/src/test/run-pass/issue-26646.rs new file mode 100644 index 000000000000..2bb961178681 --- /dev/null +++ b/src/test/run-pass/issue-26646.rs @@ -0,0 +1,21 @@ +// Copyright 2015 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +#![deny(unused_attributes)] + +#[repr(C)] +#[repr(packed)] +pub struct Foo; + +#[repr(packed)] +#[repr(C)] +pub struct Bar; + +fn main() { } \ No newline at end of file