OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [volatile7.f90] - Blame information for rev 378

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do compile }
2
! { dg-options "-O2 -fdump-tree-optimized" }
3
! Tests whether volatile really works for pointers
4
! PR fortran/29601
5
logical, pointer, volatile :: t1
6
logical, pointer :: t2
7
integer :: i
8
 
9
t1 => NULL(t1)
10
if(associated(t1)) print *, 'VolatileNotOptimizedAway'
11
t2 => NULL(t2)
12
if(associated(t2)) print *, 'NonVolatileNotOptimizedAway'
13
end
14
! { dg-final { scan-tree-dump "VolatileNotOptimizedAway" "optimized" } }
15
! { dg-final { scan-tree-dump-not "NonVolatileNotOptimizedAway" "optimized" } }
16
! { dg-final { cleanup-tree-dump "optimized" } }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.