annotate gcc/testsuite/gcc.dg/cpp/digraph2.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900 (2017-10-27)
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Copyright (C) 2000 Free Software Foundation, Inc. */
kono
parents:
diff changeset
2
kono
parents:
diff changeset
3 /* { dg-do compile } */
kono
parents:
diff changeset
4 /* { dg-options "-std=c89" } */
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 /* Just simple check that digraphs are not on in c89, for both
kono
parents:
diff changeset
7 preprocessor and compiler. digraphs.c is the general test. */
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 int main (int argc, char *argv[])
kono
parents:
diff changeset
10 {
kono
parents:
diff changeset
11 return 0;
kono
parents:
diff changeset
12 %> /* { dg-error "parse error|syntax error|expected" } */
kono
parents:
diff changeset
13
kono
parents:
diff changeset
14 /* Place this after main () so we get to test both the compiler above
kono
parents:
diff changeset
15 and the preprocessor below. */
kono
parents:
diff changeset
16 %:define glue /* { dg-error "expected declaration" } */
kono
parents:
diff changeset
17 #ifdef glue
kono
parents:
diff changeset
18 #error glue is defined!
kono
parents:
diff changeset
19 #endif