summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr42667.c
blob: eac80014bebc8ef7587cafcd645ccff41a6b78b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-options "-w" } */

extern int strlen(const char *);
void WriteTextDots(int len);

void OnDisplay(char * string)
{
  if (!string)
    string = "(none)";
  WriteTextDots(strlen(string));
}