summaryrefslogtreecommitdiffstats
path: root/src/test/ui/repr/repr-align-assign.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/repr/repr-align-assign.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/repr/repr-align-assign.rs b/src/test/ui/repr/repr-align-assign.rs
new file mode 100644
index 000000000..6b7799297
--- /dev/null
+++ b/src/test/ui/repr/repr-align-assign.rs
@@ -0,0 +1,13 @@
+// run-rustfix
+
+#![allow(dead_code)]
+
+#[repr(align=8)] //~ ERROR incorrect `repr(align)` attribute format
+ //~| ERROR incorrect `repr(align)` attribute format
+struct A(u64);
+
+#[repr(align="8")] //~ ERROR incorrect `repr(align)` attribute format
+ //~| ERROR incorrect `repr(align)` attribute format
+struct B(u64);
+
+fn main() {}