summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/ppc64-toc.c
blob: 21090af235ee83c474440daa04ec6eeb18b2d1aa (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 "-mminimal-toc" { target { powerpc*-*-* && lp64 } } } */

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;
}