代码搜索结果
找到约 10,206 项符合
Storage 的代码
ret_pointer_2.f90
! { dg-do run }
! PR 25806: Functions returning pointers to arrays
program a
integer, target :: storage(5)
integer :: s(3)
print *, x(3) ! { dg-output " *1 *2 *3" }
if (ssum(x(3
declspec-8.c
/* Test declaration specifiers. Test checks on storage class
specifiers and function specifiers in empty declarations. */
/* Origin: Joseph Myers */
/* { dg-do compile } */
decl-nospec-2.c
/* Data definition with no type or storage class should receive a
pedwarn, rather than a warning which becomes an error with
-pedantic. Test with -pedantic. */
/* Origin: Joseph Myers
declspec-11.c
/* Test declaration specifiers. Test various checks on storage class
and function specifiers that depend on information about the
declaration, not just the specifiers. Test with -pedantic-erro
pr25805.c
/* When -fzero-initialized-in-bss was in effect, we used to only allocate
storage for d1.a. */
/* { dg-do run } */
/* { dg-options "" } */
extern void abort (void);
extern void exit (int);
struct
pr18596-1.c
/* { dg-do compile } */
/* { dg-options "-fno-unit-at-a-time" } */
int f(int i)
{
static int g(); /* { dg-error "invalid storage class" } */
static int g() { return i; } /* { dg-error "invalid st
pr18596-2.c
/* { dg-do compile } */
/* { dg-options "-funit-at-a-time" } */
int f(int i)
{
static int g(); /* { dg-error "invalid storage class" } */
static int g() { return i; } /* { dg-error "invalid stora
pr18596-3.c
/* { dg-do compile } */
/* { dg-options "" } */
int foo ()
{
static g () = 0; /* { dg-error "invalid storage class" } */
static int f () = 1; /* { dg-error "invalid storage class" } */
auto int
decl-nospec-3.c
/* Data definition with no type or storage class should receive a
pedwarn, rather than a warning which becomes an error with
-pedantic. Test with -pedantic-errors. */
/* Origin: Joseph Myers
decl-nospec-1.c
/* Data definition with no type or storage class should receive a
pedwarn, rather than a warning which becomes an error with
-pedantic. Test with no options. */
/* Origin: Joseph Myers