annotate gcc/testsuite/gcc.dg/cpp/digraph2.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
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