代码搜索结果
找到约 820,005 项符合
if 的代码
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)
if-1.c
/* { dg-do preprocess } */
/* { dg-options "-pedantic-errors" } */
#if 0xa != 10
#error 0xa != 10 /* { dg-bogus "#error" "normal conversion" } */
#endif
#if 077 != 63
#error 077 != 63 /* { dg-bogus
c99-if-comma-1.c
/* Test for commas in constant expressions in #if: not permitted in C90
but permitted in unevaluated subexpressions in C99. */
/* Origin: Joseph Myers */
/* { dg-do preproce
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
if.h
/* net/if.h -- declarations for inquiring about network interfaces
Copyright (C) 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free softwar
if.h
/* net/if.h -- declarations for inquiring about network interfaces
Copyright (C) 1997,98,99,2000,2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library
if-empty-1.c
/* Test diagnostics for empty bodies in if / else. */
/* Origin: Joseph Myers */
/* { dg-do compile } */
/* { dg-options "-Wextra" } */
void
f (int x)
{
if (x)
; /* {
c90-if-comma-1.c
/* Test for commas in constant expressions in #if: not permitted in C90
but permitted in unevaluated subexpressions in C99. */
/* Origin: Joseph Myers */
/* { dg-do preproce