111
|
1 /* PR c/35441 */
|
|
2 /* { dg-do compile } */
|
|
3 /* { dg-options "-fno-diagnostics-show-caret" } */
|
|
4 /* { dg-bogus "not supported by" "" { target *-*-* } 0 } */
|
|
5
|
|
6 void foo1(char **p, char **q)
|
|
7 {
|
|
8 (p - q)(); /* { dg-error "is not a function" } */
|
|
9 }
|
|
10
|
|
11 void foo2(double x, double y)
|
|
12 {
|
|
13 (x/y)(); /* { dg-error "is not a function" } */
|
|
14 }
|
|
15
|
|
16 void foo3(unsigned i, int j)
|
|
17 {
|
|
18 (i << j | i >> (32 - j))(); /* { dg-error "is not a function" } */
|
|
19 (i >> j | i << (32 - j))(); /* { dg-error "is not a function" } */
|
|
20 }
|
|
21
|
|
22 void foo4(char *p, char *q)
|
|
23 {
|
|
24 (p < q ? p : q)(); /* { dg-error "is not a function" } */
|
|
25 (p > q ? p : q)(); /* { dg-error "is not a function" } */
|
|
26 }
|