代码搜索:Struct
找到约 10,000 项符合「Struct」的源代码
代码结果 10,000
www.eeworm.com/read/240162/4579855
c big-struct.c
// { dg-do compile { target i?86-*-* } }
struct A
{
};
struct B : public A
{
char b[0x20000000];
} e;
www.eeworm.com/read/240162/4580502
c struct1.c
// { dg-do assemble }
// Copyright (C) 1999 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 3 Jun 1999
// Duplicate definitions are wrong, we should just cough
// p
www.eeworm.com/read/240162/4589015
c struct-i.c
typedef struct {int a;} T;
int h (T *);
T g (T);
#if COMPILER != 1
h (T *x)
{
if (x->a != 47114711)
abort ();
}
#endif
#if COMPILER != 2
T
g (T x)
{
if (x.a != 13)
abort ();
x.a = 471
www.eeworm.com/read/240162/4589016
c struct-big.c
typedef struct {int a, b, c, d, e;} T;
int h (T *);
T g (T);
#if COMPILER != 1
h (T *x)
{
if (x->a != 0 || x->b != 1 || x->c != 2 || x->d != 3 || x->e != 4)
abort ();
}
#endif
#if COMPILER !=
www.eeworm.com/read/240162/4589017
c struct-ii.c
typedef struct {int a, b;} T;
int h (T *);
T g (T);
#if COMPILER != 1
h (T *x)
{
if (x->a != 0 || x->b != 1)
abort ();
}
#endif
#if COMPILER != 2
T
g (T x)
{
if (x.a != 13 || x.b != 47)
www.eeworm.com/read/240162/4589018
c struct-align.c
typedef union
{
struct {int a; int b;} s;
double d;
} T;
int h (T *);
T g (T);
#if COMPILER != 1
h (T *x)
{
if (x->s.a != 0 || x->s.b != 1)
abort ();
}
#endif
#if COMPILER != 2
T
g (T x)
www.eeworm.com/read/240162/4589020
c struct-ic.c
typedef struct {int a; char b;} T;
int h (T *);
T g (T);
#if COMPILER != 1
h (T *x)
{
if (x->a != 0 || x->b != 1)
abort ();
}
#endif
#if COMPILER != 2
T
g (T x)
{
if (x.a != 13 || x.b != 47
www.eeworm.com/read/240162/4589836
c struct-1.c
/* This testcase ICEd on IA-32 because the backend was inconsistent whether
to allow addends for @dtpoff relocs or not. */
/* { dg-do compile } */
/* { dg-options "-O2 -fpic" } */
struct S {
in
www.eeworm.com/read/233693/4665389
h var_struct.h
#ifndef VAR_STRUCT_H
#define VAR_STRUCT_H
/*
* The subtree structure contains a subtree prefix which applies to
* all variables in the associated variable list.
*
* By converting to a tree of subt
www.eeworm.com/read/233448/4669512
c struct6.c
/* Area: ffi_call
Purpose: Check structures.
Limitations: none.
PR: none.
Originator: From the original ffitest.c */
/* { dg-do run } */
#include "ffitest.h"
typedef struct
{
float f;