summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr32780.c
blob: cfe64e434ca5510618411bba54decf66fa60bd25 (plain)
1
2
3
4
5
6
7
8
9
10
typedef __SIZE_TYPE__ size_t;
extern void dont_optimize_away(size_t);

void crashGcc(char*a)
{
        size_t b=(size_t)a - ((size_t)a & 1);
        size_t c=(size_t)a - (b & (size_t)a);
        dont_optimize_away(b+c);
}