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
2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
obj-c++.dg
/
syntax-error-2.mm
blob
ba8804a89e28525dec2468724ceec9532e372557
1
/* Recover gracefully from a syntax error. */
2
3
@implementation Whatever /* { dg-warning "cannot find interface declaration for .Whatever." } */
4
5
- (void) function
6
{
7
if( 1 )
8
{
9
else /* { dg-error "expected .\}. before .else." } */
10
{
11
}
12
}
13
14
- (void) another {}
15
16
@end