⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stdbool-if.c

📁 linux下的gcc编译器
💻 C
字号:
/* { dg-do compile } *//* { dg-options -pedantic } *//* test of 'true' and 'false' in #if.  this is accepted with a pedwarn   before stdbool.h is included, silently afterward.  *//* Make sure they're viable keywords.  */bool a = true;bool b = false;#if true		/* { dg-warning "true" "true in #if pedwarn" } */#else#error true is false	/* { dg-bogus "true" "true is false" } */#endif#if false		/* { dg-warning "false" "false in #if pedwarn" } */#error false is true	/* { dg-bogus "false" "false is true" } */#endif#include <stdbool.h>/* Must still be viable keywords.  */bool c = true;bool d = false;#if true		/* { dg-bogus "true" "true in #if with stdbool.h" } */#else#error true is false	/* { dg-bogus "true" "true is false" } */#endif#if false		/* { dg-bogus "false" "false in #if with stdbool.h" } */#error false is true	/* { dg-bogus "false" "false is true" } */#endif

⌨️ 快捷键说明

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