summaryrefslogtreecommitdiff
path: root/support/regression/tests/bug-2710.c
blob: a1f407e2abe57c1c9f59e1b60ec298bfac273fc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
   bug1-2195.c

   frontend couldn't handle the addition to void * used in comparison.
*/

#include <testfwk.h>

void f(void *b, unsigned j)
{
    unsigned char *i = b;
    i <= b + j;
}

void testBug(void)
{
    f(0, 0);
}