代码搜索结果
找到约 10,206 项符合
Storage 的代码
test3.dat
//------------------------------test3.dat??------------------------------------------------
@00
00000001 // 1800 FN1: //data storage for 1st Fib. No.
00000000 //
extern1.c
// PR c++/21495
// { dg-do compile }
class A
{
extern void *copy (void) // { dg-error "storage class specified" }
{
return 0;
}
extern A &operator= (const A &) // { dg-error "storage clas
offsetof2.c
#include
struct choke_me
{
int size;
char storage[1];
};
struct offset_is_broken
{
static const int offset = offsetof(choke_me, storage);
};
extern-c-1.c
/* PR c++/4754 */
/* { dg-do compile } */
// GCC 3.2 got very confused by the nested extern "C" blocks, and thought
// there was a storage class specifier on 'int i'.
extern "C"
{
extern "C" str
diag-4.c
/* Invalid __thread specifiers. */
/* { dg-require-effective-target tls } */
__thread typedef int g4; /* { dg-error "multiple storage classes" } */
void foo()
{
__thread auto int l2; /* { dg-err
new1.c
// Origin: asharji@uwaterloo.ca
// { dg-do compile }
typedef __SIZE_TYPE__ size_t;
class bar {
int i;
public :
void * operator new ( size_t , void * storage );
};
class foo {
int sto
static4.c
// PR 13898
// Make sure the two X variables get assigned unique assembler names
// if they are promoted to static storage.
// { dg-do compile }
int g(int i) {
if (i
mult-stor1.c
// PR c++/20646
// Origin: Dan Rosen
// { dg-do compile }
struct A
{
extern static int i; // { dg-error "multiple storage classes" }
};
prepost2.c
// { dg-do assemble }
// GROUPS passed initialization
class foo {
public:
operator ++ (); // { dg-error "" } no type or storage class
operator ++ (int); // { dg-error "" } no type or stor
prepost1.c
// { dg-do assemble }
// GROUPS passed prefix-postfix
class foo {
public:
operator ++ (); // { dg-error "" } no type or storage class
};
int main()
{
foo x;
// This should fall back to ca