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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [escape-2.c] - Blame information for rev 754

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
/* { 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.