summaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc.dg/layout-2.m
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/objc.dg/layout-2.m')
-rw-r--r--gcc/testsuite/objc.dg/layout-2.m14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/objc.dg/layout-2.m b/gcc/testsuite/objc.dg/layout-2.m
new file mode 100644
index 000000000..474fc0461
--- /dev/null
+++ b/gcc/testsuite/objc.dg/layout-2.m
@@ -0,0 +1,14 @@
+/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, February 2011. */
+/* Ensure that -Wpadded generates no warnings during runtime structure metadata
+ generation. */
+/* { dg-do compile } */
+/* { dg-options "-Wpadded" } */
+
+#include "../objc-obj-c++-shared/Object1.h"
+
+/* Implement a class, so that the metadata generation happens. */
+@interface MyClass : Object
+@end
+
+@implementation MyClass
+@end