2012-12-20 Paul Thomas <pault@gcc.gnu.org>
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 20 Dec 2012 18:03:37 +0000 (18:03 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 20 Dec 2012 18:03:37 +0000 (18:03 +0000)
* gfortran.dg/same_type_as_1.f03: Correct for improved message.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194639 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/same_type_as_1.f03

index 1f401cd..c7cb233 100644 (file)
@@ -18,7 +18,7 @@
        * gfortran.dg/unlimited_polymorphic_1.f03: New test.
        * gfortran.dg/unlimited_polymorphic_2.f03: New test.
        * gfortran.dg/unlimited_polymorphic_3.f03: New test.
-       * gfortran.dg/same_type_as.f03: Correct for improved message.
+       * gfortran.dg/same_type_as_1.f03: Correct for improved message.
 
 2012-12-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
 
index 45b5d26..5f349c7 100644 (file)
@@ -6,7 +6,7 @@
 
  type :: t1
   integer :: i
- end type 
+ end type
 
  type :: ts
   sequence
 
  integer :: i
 
- print *, SAME_TYPE_AS (i,x1)   ! { dg-error "must be of a derived type" }
+ print *, SAME_TYPE_AS (i,x1)   ! { dg-error "cannot be of type INTEGER" }
  print *, SAME_TYPE_AS (x1,x2)  ! { dg-error "must be of an extensible type" }
 
- print *, EXTENDS_TYPE_OF (i,x1)   ! { dg-error "must be of a derived type" }
+ print *, EXTENDS_TYPE_OF (i,x1)   ! { dg-error "cannot be of type INTEGER" }
  print *, EXTENDS_TYPE_OF (x1,x2)  ! { dg-error "must be of an extensible type" }
 
 end