comparison gcc/testsuite/gcc.dg/parse-else-error-3.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* PR 23722 */
2 /* { dg-do compile } */
3 /* { dg-options "-fsyntax-only" } */
4 int f()
5 {
6
7 else /* { dg-error "'else' without a previous 'if'" } */
8 {
9 return 0;
10 }
11 }