代码搜索:Struct
找到约 10,000 项符合「Struct」的源代码
代码结果 10,000
www.eeworm.com/read/233448/4671131
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 "using typede
www.eeworm.com/read/233448/4671425
c struct-2.c
// Origin: Volker Reichelt
// PR c++/18731
template struct A
{
struct T::B {}; // { dg-error "invalid class name" }
};
www.eeworm.com/read/233448/4671455
c struct-3.c
// Origin: Volker Reichelt
// PR c++/18731
struct A
{
struct B;
typedef B C;
};
struct A::C {}; // { dg-error "invalid class name" }
www.eeworm.com/read/233448/4671505
c struct-1.c
// Origin: Volker Reichelt
// PR c++/18731
template struct T::A {}; // { dg-error "invalid class name" }
www.eeworm.com/read/233448/4671823
c struct1.c
struct bug {
const char *name;
unsigned long type;
};
struct bug s = { 0, (unsigned long) &s | 1 };
www.eeworm.com/read/233448/4672298
c anon-struct.c
// Contributed by Gabriel Dos Reis
// { dg-do compile }
namespace N { }
namespace M
{
typedef struct { } N;
}
www.eeworm.com/read/233448/4672357
c big-struct.c
// { dg-do compile { target i?86-*-* } }
struct A
{
};
struct B : public A
{
char b[0x20000000];
} e;
www.eeworm.com/read/233448/4673319
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/233448/4683019
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/233448/4683020
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 !=