aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20110126-1.c
blob: c55e0c2055db1d83f8e7aa011c8069f9386334dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR rtl-optimization/44469 */
/* Testcase by Siarhei Siamashka <siarhei.siamashka@gmail.com> */

int a (int *t, const char *p)
{
  if (*t == 0)
    {
    }
  else if (*t == 1)
    {
      p = (const char *)t;
    }
  else
    __builtin_unreachable();
  if (p[0])
    return 0;
  return 1;
}