代码搜索:struct
找到约 10,000 项符合「struct」的源代码
代码结果 10,000
www.eeworm.com/read/470720/1451183
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/470720/1452032
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/470693/1456330
c struct1.c
// Various struct lookup tests. We didn't used to complain about
// the definition of C.
struct A;
typedef struct A B; // { dg-error "previous declaration" }
struct B; // { dg-error "conflicting
www.eeworm.com/read/470693/1456728
c anon-struct.c
// Contributed by Gabriel Dos Reis
// { dg-do compile }
namespace N { }
namespace M
{
typedef struct { } N; // { dg-bogus ".*" "" { xfail *-*-* } }
}
www.eeworm.com/read/470693/1456758
c big-struct.c
// { dg-do compile { target i?86-*-* } }
struct A
{
};
struct B : public A
{
char b[0x20000000];
} e;
www.eeworm.com/read/470693/1457258
c struct1.c
// Build don't link:
// Copyright (C) 1999 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 3 Jun 1999
// Duplicate definitions are wrong, we should just cough
// pol
www.eeworm.com/read/470693/1463124
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/470693/1463125
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/470693/1463126
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/470693/1463127
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)