summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr26826.c
blob: 8adab3a363bffda7408663b2566bf270fe4fbefb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */
/* { dg-options "-O -fomit-frame-pointer -march=i586" } */

void foo(char* p, char c, int i)
{
    char a[2], *q=a+1;
    if (p && i)
        *p = q-a+bar(i);
    if (c)
        bar(i);
}