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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [associate_7.f03] - Blame information for rev 694

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
! { dg-options "-std=f2003 -fall-intrinsics" }
3
 
4
! PR fortran/38936
5
! Check association and pointers.
6
 
7
! Contributed by Daniel Kraft, d@domob.eu.
8
 
9
PROGRAM main
10
  IMPLICIT NONE
11
  INTEGER, TARGET :: tgt
12
  INTEGER, POINTER :: ptr
13
 
14
  tgt = 1
15
  ASSOCIATE (x => tgt)
16
    ptr => x
17
    IF (ptr /= 1) CALL abort ()
18
    ptr = 2
19
  END ASSOCIATE
20
  IF (tgt /= 2) CALL abort ()
21
END PROGRAM main

powered by: WebSVN 2.1.0

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