summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/gcc.dg/20030612-1.c
blob: f9f212caba112278fb463846c8efa760106aaf55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* Derived from PR middle-end/168.  */

/* { dg-do compile } */
/* { dg-options "-W" } */

extern void foo ();

unsigned char uc;
unsigned short int usi;
unsigned int ui;


void bar()
{
  if (uc + usi >= ui)  /* { dg-bogus "between signed and unsigned" } */
    foo ();
  if (uc * usi >= ui)  /* { dg-bogus "between signed and unsigned" } */
    foo ();
}

OpenPOWER on IntegriCloud