代码搜索:empty
找到约 10,000 项符合「empty」的源代码
代码结果 10,000
www.eeworm.com/read/240162/4579510
c empty1.c
// { dg-do run }
// Copyright (C) 2001 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 3 Sept 2001
// Bug 4203. We were bit copying empty bases including th
www.eeworm.com/read/240162/4579690
c empty7.c
// { dg-do run { target i?86-*-* } }
// { dg-options "-fabi-version=0" }
struct S1 {};
struct S2 { virtual void f () {} S1 s1[4]; };
struct S3 : virtual public S2 {};
struct S4 : virtual public S2 {
www.eeworm.com/read/240162/4579693
c empty6.c
// { dg-options "-Wabi" }
struct A {};
struct B {
A a; // { dg-warning "empty" }
virtual void f () {}
} __attribute__((aligned(8)));
/* The preceding attribute is necessary on targets with
BI
www.eeworm.com/read/240162/4579711
c empty8.c
// { dg-do run }
// { dg-options "-fabi-version=0" }
struct E1 {};
struct E2 : public E1 {};
struct S1 { int i; };
struct S2 : public S1, E2 {};
S2 s2;
int main () {
if ((char *)(E2*) &s2 != (cha
www.eeworm.com/read/240162/4579729
c empty4.c
// { dg-do run }
// Copyright (C) 2001 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 31 Jul 2001
// Bug 3820. We were bit copying empty bases including th
www.eeworm.com/read/240162/4579734
c empty9.c
// { dg-do run { target i?86-*-* } }
// { dg-options "-w -fabi-version=0" }
struct E1 {};
struct E2 : public E1 {
virtual void f ();
};
struct E3 : virtual public E1 {
};
struct S : public E2, virt
www.eeworm.com/read/240162/4579754
c empty11.c
// { dg-do run }
// { dg-options "-w -fabi-version=0" }
struct E {};
struct E2 : public E {};
struct E3 : public E, public E2 {};
struct E4 : public E, public E2, public E3 { };
struct E5 : public E,
www.eeworm.com/read/240162/4580320
c empty3.c
// { dg-do assemble }
// Copyright (C) 2001 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 12 Apr 2001
// Check we deal with aligning virtual bases after
www.eeworm.com/read/240162/4580333
c empty2.c
// { dg-do assemble }
// Copyright (C) 2001 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 12 Apr 2001
// Check we deal with trailing empty base classes p
www.eeworm.com/read/240162/4580623
c empty1.c
// { dg-do run }
// Origin: Mark Mitchell
// This test case checks that the return value optimization works for
// empty classes.
// PR c++/5995
extern "C" void abort();
ext