escape.c

来自「this is a gcc file, you can download it 」· C语言 代码 · 共 26 行

C
26
字号
/* Copyright (C) 2001 Free Software Foundation, Inc.  *//* { dg-do compile } *//* { dg-options "-Wtraditional -std=c89 -fno-show-column" } *//* This tests various diagnostics with -Wtraditioanl about escape   sequences, for both the preprocessor and the compiler.   Neil Booth, 22 May 2001.  */#if '\a'		/* { dg-warning "traditional" "traditional bell" } */#endif#if '\x1a' != 26	/* { dg-warning "traditional" "traditional hex" } */ #error bad hex		/* { dg-bogus "bad" "bad hexadecimal evaluation" } */#endif#if '\u'		/* { dg-warning "unknown" "\u is unknown in C89" } */#endifvoid foo (){  int c = '\a';		/* { dg-warning "traditional" "traditional bell" } */  c = '\xa1';		/* { dg-warning "traditional" "traditional hex" } */  c = '\u';		/* { dg-warning "unknown" "\u is unknown in C89" } */}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?