OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gfortran.dg/] [structure_constructor_3.f03] - Blame information for rev 437

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

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do compile }
2
! Structure constructor with component naming, test that an error is emitted
3
! if there are arguments without name after ones with name.
4
 
5
PROGRAM test
6
  IMPLICIT NONE
7
 
8
  ! Structure of basic data types
9
  TYPE :: basics_t
10
    INTEGER :: i
11
    REAL :: r
12
  END TYPE basics_t
13
 
14
  TYPE(basics_t) :: basics
15
 
16
  basics = basics_t (i=42, 1.5) ! { dg-error "without name after" }
17
 
18
END PROGRAM test

powered by: WebSVN 2.1.0

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