repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2008-01-25 Douglas Gregor <doug.gregor@gmail.com>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
parse-else-error-4.c
blob
617c3f3e3f00cf0760cdbef1dd79a1d2f418e6e2
1
/* PR 23722 */
2
/* { dg-do compile } */
3
/* { dg-options "-fsyntax-only" } */
4
int
f
()
5
{
6
if
(
1
)
7
{
8
return
1
;
9
}
10
else
11
{
12
else
;
/* { dg-error "'else' without a previous 'if'" } */
13
}
14
}