aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/ppc64-toc.c
blob: ed555a9b6d79532861a2cb98b532128521798df6 (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 { powerpc64-*-* && 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;
}