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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [escape-2.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* Copyright (C) 2001 Free Software Foundation, Inc.  */
2
 
3
/* { dg-do compile } */
4
/* { dg-options "-pedantic -std=c99" } */
5
 
6
/* This tests various diagnostics with -pedantic about escape
7
   sequences, for both the preprocessor and the compiler.
8
 
9
   Neil Booth, 22 May 2001.  */
10
 
11
#if '\e'                /* { dg-warning "non-ISO" "non-ISO \\e" } */
12
#endif
13
#if L'\u00a0'           /* { dg-bogus "unknown" "\\u is known in C99" } */
14
#endif
15
 
16
void foo ()
17
{
18
  int c = '\E';         /* { dg-warning "non-ISO" "non-ISO \\E" } */
19
  c = L'\u00a0';        /* { dg-bogus "unknown" "\\u is known in C99" } */
20
}

powered by: WebSVN 2.1.0

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