代码搜索:alloc
找到约 10,000 项符合「alloc」的源代码
代码结果 10,000
www.eeworm.com/read/446555/1711539
svn-base bad-alloc1.cpp.svn-base
#include
#include
using namespace std;
void memoryEater() {
int i = 0;
double* ptr;
try {
while (1) {
ptr = new double[50000000];
cerr
www.eeworm.com/read/375190/2736987
cpp shared_ptr_alloc2_test.cpp
#include
// shared_ptr_alloc2_test.cpp
//
// Copyright (c) 2005 Peter Dimov
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0
www.eeworm.com/read/366702/2876273
f90 alloc_comp_constraint_3.f90
! { dg-do compile }
! Check that default initializer for allocatable components isn't accepted (PR
! 20541)
program main
type :: foo
integer, allocatable :: a(:) = [ 1 ] ! { dg-error "Ini
www.eeworm.com/read/366702/2876354
f90 alloc_comp_assign_2.f90
! { dg-do run }
! Test FORALL and WHERE with derived types with allocatable components (PR 20541).
!
! Contributed by Erik Edelmann
! and Paul Thomas
www.eeworm.com/read/366702/2876385
f90 alloc_comp_constraint_4.f90
! { dg-do compile }
! Tests the fix for PR29422, in which function results
! were not tested for suitability in IO statements.
!
! Contributed by Dominique d'Humieres
!
Type drv
www.eeworm.com/read/366702/2876430
f90 alloc_comp_assign_4.f90
! { dg-do run }
! Test assignments of nested derived types with character allocatable
! components(PR 20541). Subroutine test_ab6 checks out a bug in a test
! version of gfortran's allocatable arrays.
www.eeworm.com/read/366702/2876443
f90 alloc_comp_constraint_5.f90
! { dg-do compile }
! Check that ALLOCATABLE components aren't allowed to the right of a non-zero
! rank part reference.
program test
implicit none
type :: foo
real, allocatable :: ba
www.eeworm.com/read/366702/2876445
f90 alloc_comp_basics_3.f90
! { dg-do compile }
! Test the patch for PR30202 in which the INTENT(OUT)
! caused an ICE.
!
! Contributed by Salvatore Filippone
!
program class_scal_p
implicit none
type
www.eeworm.com/read/366702/2876557
f90 alloc_comp_constraint_1.f90
! { dg-do compile }
! Check that we don't allow IO or NAMELISTs with types with allocatable
! components (PR 20541)
program main
type :: foo
integer, allocatable :: x(:)
end type foo
www.eeworm.com/read/366702/2876603
f90 alloc_comp_basics_4.f90
! { dg-do compile }
! Tests the fix for PR30660 in which gfortran insisted that g_dest
! should have the SAVE attribute because the hidden default
! initializer for the allocatable component was being