annotate gcc/testsuite/gcc.dg/cpp/maccom6.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900 (2020-02-13)
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-do preprocess } */
kono
parents:
diff changeset
2 /* { dg-options "-CC" } */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 /* This tests to make sure that expressions function properly
kono
parents:
diff changeset
5 when used with macros containing comments and the -CC option
kono
parents:
diff changeset
6 is being used.
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 Jason R. Thorpe, 6 Apr 2002 */
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 #define ONE 1 /* one */
kono
parents:
diff changeset
11 #define TWO 2 /* two */
kono
parents:
diff changeset
12 #define THREE 3 /* three */
kono
parents:
diff changeset
13
kono
parents:
diff changeset
14 #if (ONE + TWO) != THREE
kono
parents:
diff changeset
15 failed
kono
parents:
diff changeset
16 #else
kono
parents:
diff changeset
17 passed
kono
parents:
diff changeset
18 #endif
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 /* { dg-final { scan-file maccom6.i "(^|\n)passed" } } */