aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/obj-c++.dg/layout-1.mm
blob: c3e03dc96defcc3da5ea6a38e48b50645323d31e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* APPLE LOCAL file mainline */
/* Ensure that we do not get bizarre warnings referring to
   __attribute__((packed)) or some such.  */
/* { dg-do compile } */
/* { dg-options "-Wpadded -Wpacked -Wabi" } */

#include <objc/Object.h>

@interface Derived1: Object
{ }
@end

@interface Derived2: Object
- (id) foo;
@end