1 /* Test warning for non existing selectors. */
2 /* Contributed by Devang Patel <dpatel@apple.com>. */
3 /* { dg-options "-Wselector" } */
4 /* { dg-do compile } */
5 /* { dg-skip-if "" { *-*-* } { "-fgnu-runtime" } { "" } } */
6 /* { dg-additional-options "-Wno-objc-root-class" } */
8 typedef struct objc_object { struct objc_class *class_pointer; } *id;
9 typedef struct objc_selector *SEL;
24 a = @selector(b1ar); /* { dg-warning "creating selector for nonexistent method .b1ar." } */