2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / cpp / digraph2.c
blobcac4e256b0a8a9a91746cdda21821829164eb2e8
1 /* Copyright (C) 2000 Free Software Foundation, Inc. */
3 /* { dg-do compile } */
4 /* { dg-options "-std=c89" } */
6 /* Just simple check that digraphs are not on in c89, for both
7 preprocessor and compiler. digraphs.c is the general test. */
9 int main (int argc, char *argv[])
11 return 0;
12 %> /* { dg-error "(parse|syntax) error" } */
14 /* Place this after main () so we get to test both the compiler above
15 and the preprocessor below. */
16 %:define glue
17 #ifdef glue
18 #error glue is defined!
19 #endif