summaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc.dg/layout-1.m
blob: f702eb2badcab828755587b810ddae381fd3a377 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* Ensure that we do not get bizarre warnings referring to
   __attribute__((packed)) or some such.  */
/* { dg-do compile } */
/* { dg-options "-Wpadded -Wpacked" } */

#include "../objc-obj-c++-shared/Object1.h"

@interface Derived1: Object
{ }
@end

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