aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/pr59860.c
blob: 6807d9c843f3bf89b8d74f2a30d7f99d764e6536 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-O" } */

extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * __attribute__ ((__nothrow__ , __leaf__))
strcat (char *__restrict __dest, const char *__restrict __src)
{
  return __builtin___strcat_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1));
}
static char raw_decode;
void foo (char **argv, char *outfilename)
{
  if (**argv == 'r')
    raw_decode = 1;
  strcat (outfilename, raw_decode ? ".raw" : ".wav");
}