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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [stat_2.f90] - Blame information for rev 193

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

Line No. Rev Author Line
1 149 jeremybenn
! { dg-do run }
2
! { dg-options "-std=gnu" }
3
  character(len=*), parameter :: f = "testfile"
4
  integer :: s1(13), r1, s2(13), r2, s3(13), r3
5
 
6
  open (10,file=f)
7
  write (10,"(A)") "foo"
8
  close (10,status="keep")
9
 
10
  open (10,file=f)
11
  r1 = lstat (f, s1)
12
  r2 = stat (f, s2)
13
  r3 = fstat (10, s3)
14
 
15
  if (r1 /= 0 .or. r2 /= 0 .or. r3 /= 0) call abort
16
  if (any (s1 /= s2) .or. any (s1 /= s3)) call abort
17
  if (s1(5) /= getuid()) call abort
18
  if (s1(6) /= getgid() .and. getgid() /= 0) call abort
19
  if (s1(8) < 3 .or. s1(8) > 5) call abort
20
 
21
  close (10,status="delete")
22
  end

powered by: WebSVN 2.1.0

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