repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR inline-asm/84742
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
o_fast_stacksize.f90
blob
a373d15e54e48b44f89519bfb8184488ea55e79e
1
! { dg-do compile }
2
! { dg-options "-Ofast -fmax-stack-var-size=100 -fdump-tree-original" }
3
MODULE
foo
4
CONTAINS
5
SUBROUTINE
mysum
(
a
)
6
INTEGER
::
a
(:)
7
WRITE
(
6
,*)
SUM
(
a
)
8
END SUBROUTINE
9
END MODULE
foo
10
11
USE
foo
12
INTEGER
,
ALLOCATABLE
::
a
(:)
13
INTEGER
,
PARAMETER
::
N
=
2
**
26
! 256Mb array
14
ALLOCATE
(
a
(
N
)) ;
a
=
1
15
CALL
mysum
(
a
*
a
)
16
END
17
! { dg-final { scan-tree-dump-times "__builtin_malloc" 2 "original" } }