* tree-loop-distribution.c (struct partition): New field recording
[official-gcc.git] / gcc / testsuite / obj-c++.dg / selector-warn-1.mm
blobb4b308d7b70886e199627c7234b55d4f41c4733e
1 /* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, January 2011.  */
2 /* { dg-options "-Wselector" } */
3 /* { dg-do compile } */
5 #include <objc/objc.h>
7 @interface RootObject
8 @end
10 @interface MyObject : RootObject
11 - (void) method; /* { dg-message "found" } */
12 @end
14 @interface MyObject2  : RootObject
15 - (int) method; /* { dg-message "also found" } */
16 @end /* { dg-warning "multiple selectors named .-method. found" } */