代码搜索:empty
找到约 10,000 项符合「empty」的源代码
代码结果 10,000
www.eeworm.com/read/233448/4673137
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/233448/4673150
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/233448/4673440
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
www.eeworm.com/read/233448/4673500
c empty2.c
// { dg-do assemble }
// Origin: Mark Mitchell
struct E {};
void f () {
E e1, e2;
e1 = e2; // We should not warn about this statement, even though no
// code
www.eeworm.com/read/233448/4684488
c empty1.c
/* { dg-do run } */
/* { dg-options "" } */
struct S { int : 0; };
union U { int : 0; };
int main () {
if (__alignof__ (struct S) != __alignof__ (union U))
return 1;
return 0;
}
www.eeworm.com/read/233448/4684896
c if-empty-1.c
/* Test diagnostics for empty bodies in if / else. */
/* Origin: Joseph Myers */
/* { dg-do compile } */
/* { dg-options "-Wextra" } */
void
f (int x)
{
if (x)
; /* {
www.eeworm.com/read/233448/4685894
c empty-include.c
/*
* Copyright 2004 Free Software Foundation, Inc.
* Contributed and written by Nathanael Nerode.
*
* GCC 3.4 would attempt to open stdin as the included file
* (PR 17610), causing a sort of han
www.eeworm.com/read/233448/4686266
c empty2.c
/* { dg-do compile } */
double d=0;
struct A {} a; /* { dg-warning "(has no members)" } */
void foo(struct A x)
{
d=0;
}
void bar()
{
if (d) foo(a);
}