repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Fixups after merge
[official-gcc.git]
/
gcc
/
testsuite
/
objc.dg
/
selector-2.m
blob
6cad2ffb092e29efcfd2232f07dbd68b7c74787c
1
/* Test that we don't ICE when issuing a -Wselector warning. */
2
/* { dg-options "-Wselector" } */
3
/* { dg-do compile } */
4
5
#include <objc/objc.h>
6
7
@interface Foo
8
@end
9
@implementation Foo
10
-(void) foo
11
{
12
SEL a;
13
a = @selector(b1ar);
14
}
15
@end
16
/* { dg-warning "creating selector for nonexistent method .b1ar." "" { target *-*-* } 0 } */