summaryrefslogtreecommitdiffstats
path: root/tests/ui/repr/repr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/repr/repr.rs')
-rw-r--r--tests/ui/repr/repr.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/repr/repr.rs b/tests/ui/repr/repr.rs
new file mode 100644
index 000000000..564d67326
--- /dev/null
+++ b/tests/ui/repr/repr.rs
@@ -0,0 +1,13 @@
+#[repr] //~ ERROR malformed `repr` attribute
+struct _A {}
+
+#[repr = "B"] //~ ERROR malformed `repr` attribute
+struct _B {}
+
+#[repr = "C"] //~ ERROR malformed `repr` attribute
+struct _C {}
+
+#[repr(C)]
+struct _D {}
+
+fn main() {}