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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [escape-2.c] - Rev 154

Compare with Previous | Blame | View Log

/* Copyright (C) 2001 Free Software Foundation, Inc.  */
 
/* { dg-do compile } */
/* { dg-options "-pedantic -std=c99 -fno-show-column" } */
 
/* This tests various diagnostics with -pedantic about escape
   sequences, for both the preprocessor and the compiler.
 
   Neil Booth, 22 May 2001.  */
 
#if '\e'		/* { dg-warning "non-ISO" "non-ISO \\e" } */
#endif
#if L'\u00a0'		/* { dg-bogus "unknown" "\\u is known in C99" } */
#endif
 
void foo ()
{
  int c = '\E';		/* { dg-warning "non-ISO" "non-ISO \\E" } */
  c = L'\u00a0';	/* { dg-bogus "unknown" "\\u is known in C99" } */
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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