summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/gcc.dg/ppc64-toc.c
blob: 747f137e83fc7af5ba4c450a39c1f369df019980 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* { dg-do link } */
/* { dg-options "-m64 -mminimal-toc" { target powerpc64-*-* } } */

char *strchr (const char *, int);

int
foo (int a)
{
  int b;

  b = 0;
  if ("/"[1] != '\0')
    if (strchr ("/", a))
      b = 1;
  return b;
}

int
main (void)
{
  return 0;
}
OpenPOWER on IntegriCloud