Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1156)

Unified Diff: gcc/gcc/testsuite/gfortran.dg/negative_unit_int8.f

Issue 3050029: [gcc] GCC 4.5.0=>4.5.1 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-toolchain.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gcc/gcc/testsuite/gfortran.dg/nearest_2.f90 ('k') | gcc/gcc/testsuite/gfortran.dg/nested_modules_4.f90 » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcc/gcc/testsuite/gfortran.dg/negative_unit_int8.f
diff --git a/gcc/gcc/testsuite/gfortran.dg/negative_unit_int8.f b/gcc/gcc/testsuite/gfortran.dg/negative_unit_int8.f
index 53a7daa8c2587df211368bba2a556458cf3e550c..d4c35579f044c8bb6fe87fb3b2857cc9d8585370 100644
--- a/gcc/gcc/testsuite/gfortran.dg/negative_unit_int8.f
+++ b/gcc/gcc/testsuite/gfortran.dg/negative_unit_int8.f
@@ -13,22 +13,22 @@
integer, parameter ::ERROR_BAD_UNIT = 5005
logical l
- i = 0
+ i = -1
! gfortran created a 'fort.-1' file and wrote "Hello" in it
- write (unit=-1, fmt=*, iostat=i) "Hello"
+ write (unit=i, fmt=*, iostat=i) "Hello"
if (i <= 0) call abort
- i = 0
- open (unit=-11, file="xxx", iostat=i)
+ i = -11
+ open (unit=i, file="xxx", iostat=i)
if (i <= 0) call abort
- i = 0
- inquire (unit=-42, exist=l)
+ i = -42
+ inquire (unit=i, exist=l)
if (l) call abort
- i = 0
+ i = 2_8*huge(0_4)+20_8
! This one is nasty
- inquire (unit=2_8*huge(0_4)+20_8, exist=l, iostat=i)
+ inquire (unit=i, exist=l, iostat=i)
if (l) call abort
if (i.ne.ERROR_BAD_UNIT) call abort
« no previous file with comments | « gcc/gcc/testsuite/gfortran.dg/nearest_2.f90 ('k') | gcc/gcc/testsuite/gfortran.dg/nested_modules_4.f90 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698