PR c/64856
[official-gcc.git] / gcc / testsuite / gcc.dg / concat.c
blobe3bfd4632409a6676298045a894efa9e7a3bf8f7
1 /* Copyright (C) 2001 Free Software Foundation, Inc. */
3 /* { dg-do compile } */
4 /* { dg-options "" } */
6 /* Test we output an error for concatenation of artificial strings.
8 Neil Booth, 10 Dec 2001. */
10 void foo ()
12 char s1[] = __FUNCTION__"."; /* { dg-error "(parse|syntax|expected|invalid|array)" } */
13 char s2[] = __PRETTY_FUNCTION__".";/* { dg-error "(parse|syntax|expected|invalid|array)" } */
14 char s3[] = "."__FUNCTION__; /* { dg-error "(parse|syntax|expected|invalid)" } */
15 char s4[] = "."__PRETTY_FUNCTION__;/* { dg-error "(parse|syntax|expected|invalid)" } */
16 char s5[] = ".""."; /* No error. */