代码搜索:Struct
找到约 10,000 项符合「Struct」的源代码
代码结果 10,000
www.eeworm.com/read/366702/2869377
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/366702/2879404
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/366702/2879405
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/366702/2879406
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/366702/2879407
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/366702/2879409
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/366702/2881703
c struct-1.c
/* { dg-require-effective-target int32plus } */
#include "struct-1.h"
struct ChainSearchRecord {
int identity;
};
typedef struct ChainSearchRecord ChainSearchRecord;
void foo (ChainSearchPtr s)
{
www.eeworm.com/read/366702/2881734
hs struct-1.hs
struct ChainSearchRecord;
typedef struct ChainSearchRecord *ChainSearchPtr;
www.eeworm.com/read/366702/2882109
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-require-effective-target fpic } */
/* { d
www.eeworm.com/read/366702/2882260
c struct-union.c
/* { dg-do compile } */
/* { dg-options "-O -Wall" } */
/* C99 6.5.2.3 Structure and union members.
If the first expression has qualified type, the result has the so-qualified
version of the t