代码搜索结果
找到约 820,005 项符合
if 的代码
bitfield5_y.c
extern "C" void abort (void);
#include "bitfield5.h"
void A::f () {}
void bitfield5_y (B& b)
{
if (b.f3 != 7)
abort ();
if (b.f4 != 3)
abort ();
}
elide1_x.c
#include "elide1.h"
extern "C" void abort (void);
extern void f (A);
extern int d;
void
elide1_x (void)
{
int r;
f (A ()), r = d;
if (r >= d || !d)
abort ();
}
init-ref2_y.c
extern int f (void);
extern int r;
const int *p;
void g ()
{
static const int &i = f();
// Test that i points to the same place in both calls.
if (p && p != &i)
++r;
// Test that if so,
array5_y.c
int count;
int num;
struct A
{
A();
~A();
};
A::A()
{
if (count == num)
throw "";
count++;
}
A::~A()
{
count--;
}
dtor1_y.c
#include "dtor1.h"
extern "C" void abort ();
int d = 5;
B::B (int i) : x (i) { }
B::~B () { if (d-- != x) abort (); }
C1::C1 (int i) : B (i) {}
C2::C2 (int i) : B (i) {}
D::D (int i) : B (i) {}
init-ref2_x.c
extern "C" void abort (void);
extern void g (void);
extern void h (void);
int r;
int c;
int f ()
{
// Test that we only initialize i once.
if (++c > 1)
++r;
return 42;
}
void
init_ref2_x (
byval1_x.c
#include "byval1.h"
extern "C" void abort (void);
extern void Foo (C c);
extern int r;
void
byval1_x ()
{
C c;
Foo (c);
if (r != 0)
abort ();
}
byval1_y.c
#include "byval1.h"
void *p[2];
int i;
int r;
C::C() { p[i++] = this; }
C::~C() { if (p[--i] != this) r = 1; }
void Foo (C c)
{
p[i++] = &c;
}
bitfield2_y.c
// { dg-options "-ansi -pedantic-errors -fsigned-bitfields" }
extern "C" void abort (void);
#include "bitfield1.h"
void bitfield1_y (A& a)
{
if (a.bitS != -1)
abort ();
if (a.bitU != 1)
vbase8-22_y.c
// { dg-options -w }
extern "C" void abort (void);
#include "vbase8-22.h"
void check_C0 (C0 &x, int i)
{
if (x.i0 != i)
abort ();
}
void check_C1 (C1 &x, int i)
{
if (x.i1 != i)
abort