Fix ICE in substring-handling building 502.gcc_r (PR 87562)
[official-gcc.git] / gcc / testsuite / gcc.dg / pr35441.c
blob2d48533f3110d13f11907a8f2312ed63d5ebc64f
1 /* PR c/35441 */
2 /* { dg-do compile } */
3 /* { dg-options "-fno-diagnostics-show-caret" } */
4 /* { dg-bogus "not supported by" "" { target *-*-* } 0 } */
6 void foo1(char **p, char **q)
8 (p - q)(); /* { dg-error "is not a function" } */
11 void foo2(double x, double y)
13 (x/y)(); /* { dg-error "is not a function" } */
16 void foo3(unsigned i, int j)
18 (i << j | i >> (32 - j))(); /* { dg-error "is not a function" } */
19 (i >> j | i << (32 - j))(); /* { dg-error "is not a function" } */
22 void foo4(char *p, char *q)
24 (p < q ? p : q)(); /* { dg-error "is not a function" } */
25 (p > q ? p : q)(); /* { dg-error "is not a function" } */