代码搜索结果

找到约 820,005 项符合 if 的代码

if-2.c

/* { dg-do preprocess } */ /* { dg-options -pedantic-errors } */ #if 'a' != 'a' || '\001' != 1 || '\x12' != 0x12 #error a,1,0x12 /* { dg-bogus "#error" "basic charconst recognition" } */ #endif #if

if-shift.c

/* Copyright (C) 2000 Free Software Foundation, Inc. */ /* { dg-do preprocess } */ /* Test shift operators. */ #if 1 >

if-mop.c

/* Copyright (C) 2000 Free Software Foundation, Inc. */ /* { dg-do preprocess } */ /* Source: Neil Booth. */ /* Various illegal expressions with missing components. */ #if /* { dg-error "no ex

stdbool-if.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 th

if-paren.c

/* Copyright (C) 2000 Free Software Foundation, Inc. */ /* { dg-do preprocess } */ /* These now use "!=" rather than "

if-sc.c

/* Copyright (C) 2000 Free Software Foundation, Inc. */ /* { dg-do preprocess } */ /* Test that all operators correctly short circuit. */ #if (2 || 3 / 0) != 1 #error /* { dg-bogus "error" "|| s

if-unary.c

/* Copyright (C) 2000 Free Software Foundation, Inc. */ /* { dg-do preprocess } */ /* Test the various unary operators. */ #if 1 + + + 1 /* allow multiple unary sign operators :) */ #endif #if

if-4.c

/* Regression test for proper error message. The token name isn't NUL terminated, so we would print garbage after it. */ /* { dg-do compile } */ #if 1 += 2 /* { dg-error "is not valid" "+= in

if-mpar.c

/* Copyright (C) 2000 Free Software Foundation, Inc. */ /* Test various combinations of missing parentheses give the correct missing parenthesis message. */ /* { dg-do preprocess } */ #if (1

if-cexp.c

/* { dg-do preprocess } */ /* Test the ? : opearator, for precedence and both true and false. */ #if 1 ? 1 ? 2 : 0 : 0 #error OK /* { dg-error "OK" "nested ? :" } */ #endif #if ((0) ? (1) ? (2)