annotate gcc/testsuite/gcc.dg/cpp/extratokens2.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +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) 2002 Free Software Foundation, Inc. */
kono
parents:
diff changeset
2
kono
parents:
diff changeset
3 /* { dg-do preprocess } */
kono
parents:
diff changeset
4 /* { dg-options "-Wno-endif-labels" } */
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 /* Tests that -Wno-endif-labels correctly disables the checks done by
kono
parents:
diff changeset
7 default (and tested in extratokens.c). */
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 /* Source: Phil Edwards, 21 Mar 2002. Copied from extratokens.c and
kono
parents:
diff changeset
10 modified. */
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 #if 1
kono
parents:
diff changeset
13 #if 0
kono
parents:
diff changeset
14 #else foo /* { dg-bogus "extra tokens" "bad warning" } */
kono
parents:
diff changeset
15 #endif / /* { dg-bogus "extra tokens" "bad warning" } */
kono
parents:
diff changeset
16 #endif
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 # 36 "file.c" 3
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 /* ... but in a system header, it's acceptable. */
kono
parents:
diff changeset
21 #ifdef KERNEL
kono
parents:
diff changeset
22 #endif KERNEL /* { dg-bogus "extra tokens" "bad warning" } */