Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / cpp / trigraphs.c
blob3ec5ed7213567c80fca9246004e30e894e498cae
1 /* { dg-do run } */
2 /* { dg-options "-ansi" } */
4 extern void abort (void);
6 /* Basic tests for trigraph conversion.
7 All of them are here, but not in all possible contexts. *??/
10 ??=include <stdio.h>
12 ??=define TWELVE 1??/
15 static const char str??(??) = "0123456789??/n";
17 int
18 main(void)
19 ??<
20 unsigned char x = 5;
22 if (sizeof str != TWELVE)
23 abort ();
25 /* Test ^=, the only multi-character token to come from trigraphs. */
26 x ??'= 3;
27 if (x != 6)
28 abort ();
30 if ((5 ??! 3) != 7)
31 abort ();
33 return 0;
34 ??>