OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [concat.c] - Blame information for rev 713

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* Copyright (C) 2001 Free Software Foundation, Inc.  */
2
 
3
/* { dg-do compile } */
4
 
5
/* Test we output an error for concatenation of artificial strings.
6
 
7
   Neil Booth, 10 Dec 2001.  */
8
 
9
void foo ()
10
{
11
  char s1[] = __FUNCTION__".";       /* { dg-error "(parse|syntax|expected|invalid|array)" } */
12
  char s2[] = __PRETTY_FUNCTION__".";/* { dg-error "(parse|syntax|expected|invalid|array)" } */
13
  char s3[] = "."__FUNCTION__;       /* { dg-error "(parse|syntax|expected|invalid)" } */
14
  char s4[] = "."__PRETTY_FUNCTION__;/* { dg-error "(parse|syntax|expected|invalid)" } */
15
  char s5[] = "."".";                /* No error.  */
16
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.