代码搜索结果
找到约 820,005 项符合
if 的代码
error26.c
// PR c++/20148
// { dg-options "" }
void foo()
{
if (({int c[2];})) ; // { dg-error "\{\.\.\.\}" }
}
void bar()
{
if (({})); // { dg-error "\{\.\.\.\}" }
}
cond2.c
// PR c++/20905
struct name {};
int
f ();
void
g ()
{
if (int name = f ())
{
}
}
crash2.c
/* { dg-do compile } */
int main(void)
{
char x, y;
if ('A' == x) && ('B' == y)) { } /* { dg-error "" } */
if (x == 'A') && (y == 'B')) { } /* { dg-error "" } */
}
dtor1_y.c
extern int r;
int ad;
#include "dtor1.h"
A::~A () { ++ad; }
B::~B ()
try
{
throw 1;
}
catch (...)
{
if (!ad)
r = 1;
return;
}
nrv1_x.c
extern "C" void exit (int);
extern "C" void abort (void);
#include "nrv1.h"
extern A f (void);
int c, d;
void nrv1_x ()
{
try
{ A a = f(); }
catch (...) { }
if (d < c)
abort ();
ex
dtor1_x.c
extern "C" void exit (int);
extern "C" void abort (void);
#include "dtor1.h"
int r;
void dtor1_x ()
{
{ B b; }
if (r != 0)
abort ();
exit (0);
}
vbase10_y.c
extern "C" void abort (void);
#include "vbase10.h"
void A::f () {}
B::B() {}
void vbase10_y (C& c)
{
if (c.c1 != 1)
abort ();
if (c.c2 != 2)
abort ();
}
empty6_y.c
extern "C" void abort (void);
#include "empty6.h"
void empty6_y (B& b)
{
if (b.i != 7)
abort ();
}
vbase11_y.c
extern "C" void abort (void);
#include "vbase11.h"
void vbase11_y (derived& d)
{
if (d.foo() != 2)
abort ();
if (d.bar() != 3)
abort ();
}
bitfield7_y.c
// { dg-options "-w" }
extern "C" void abort (void);
#include "bitfield7.h"
void bitfield7_y (U* u)
{
if (u[0].i != 7)
abort ();
if (u[1].i != 8)
abort ();
}