OSDN Git Service

fix PR23716
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / obj-c++.dg / layout-1.mm
1 /* Ensure that we do not get bizarre warnings referring to
2    __attribute__((packed)) or some such.  */
3 /* { dg-do compile } */
4 /* { dg-options "-Wpadded -Wpacked -Wabi" } */
5
6 #include "../objc-obj-c++-shared/Object1.h"
7
8 @interface Derived1: Object
9 { }
10 @end
11
12 @interface Derived2: Object
13 - (id) foo;
14 @end
15
16 /* { dg-prune-output "In output included from" }   Ignore this message.  */
17 /* { dg-bogus "padding struct to align" "PR23610" { target *-*-* } 0 } */