summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/overflow-warn-7.c
blob: 7c0ce68df50864187e0fbcecf10a60c42d3595a3 (plain)
1
2
3
4
5
6
7
8
/* { dg-do compile } */
/* { dg-options "-Wall" } */

int f(char *device)
{
  return device == ((char *)0 + ~0UL);  /* { dg-bogus "overflow" } */
}