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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! Test for errors when excess components are given for a structure-constructor.
3
 
4
PROGRAM test
5
  IMPLICIT NONE
6
 
7
  ! Structure of basic data types
8
  TYPE :: basics_t
9
    INTEGER :: i
10
    REAL :: r = 1.5
11
  END TYPE basics_t
12
 
13
  TYPE(basics_t) :: basics
14
 
15
  basics = basics_t (42, 1.5, 1000) ! { dg-error "Too many components" }
16
  basics = basics_t (42, xxx = 1000) ! { dg-error "is not a member" }
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.