summaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc.dg/layout-2.m
blob: 474fc046192a8b36dda291e7eb2d181095ac03cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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