annotate gcc/testsuite/gcc.dg/pr69627.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 /* PR c/69627 */
kono
parents:
diff changeset
2 /* { dg-do compile } */
kono
parents:
diff changeset
3 /* { dg-options "-fdiagnostics-show-caret" } */
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 void
kono
parents:
diff changeset
6 foo ()
kono
parents:
diff changeset
7 {
kono
parents:
diff changeset
8 float t[2] = { 1, 2 };
kono
parents:
diff changeset
9 int const *s = 0;
kono
parents:
diff changeset
10 t[1] / s; /* { dg-error "invalid operands to binary /" } */
kono
parents:
diff changeset
11 /* { dg-begin-multiline-output "" }
kono
parents:
diff changeset
12 t[1] / s;
kono
parents:
diff changeset
13 ~~~~ ^
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
14 |
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
15 float
111
kono
parents:
diff changeset
16 { dg-end-multiline-output "" } */
kono
parents:
diff changeset
17 }
kono
parents:
diff changeset
18
kono
parents:
diff changeset
19 void
kono
parents:
diff changeset
20 bar ()
kono
parents:
diff changeset
21 {
kono
parents:
diff changeset
22 float t[2] = { 1, 2 };
kono
parents:
diff changeset
23 int const *s[2] = { 0, 0 };
kono
parents:
diff changeset
24 t[1] / s[0]; /* { dg-error "invalid operands to binary /" } */
kono
parents:
diff changeset
25 /* { dg-begin-multiline-output "" }
kono
parents:
diff changeset
26 t[1] / s[0];
kono
parents:
diff changeset
27 ~~~~ ^ ~~~~
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
28 | |
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
29 float const int *
111
kono
parents:
diff changeset
30 { dg-end-multiline-output "" } */
kono
parents:
diff changeset
31 }