1/* Copyright (C) 2000 Free Software Foundation, Inc. */ 2 3/* { dg-do run } */ 4/* { dg-options "" } */ 5 6/* Apparently older preprocessors used to fail this test. */ 7 8#include <string.h> 9 10extern void abort (void); 11 12#define S(str, args...) " " str "\n", ##args 13 14int 15main() 16{ 17 const char *s = S("foo"); 18 19 if (strchr (s, '\n') == NULL) 20 abort (); 21 22 return 0; 23} 24