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

Unified Diff: gcc/gcc/testsuite/gnat.dg/object_overflow.adb

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/gnat.dg/alignment6.adb ('k') | gcc/gcc/testsuite/gnat.dg/pack9.adb » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcc/gcc/testsuite/gnat.dg/object_overflow.adb
diff --git a/gcc/gcc/testsuite/gnat.dg/object_overflow.adb b/gcc/gcc/testsuite/gnat.dg/object_overflow.adb
index 820e93656e6a29c21f3cbead4335f1659bada2c5..597b7964585d4e4e0305c1d83aa63e2bf4d6f966 100644
--- a/gcc/gcc/testsuite/gnat.dg/object_overflow.adb
+++ b/gcc/gcc/testsuite/gnat.dg/object_overflow.adb
@@ -2,13 +2,12 @@
procedure Object_Overflow is
- type Rec is null record;
+ procedure Proc (x : Boolean) is begin null; end;
- procedure Proc (x : Rec) is begin null; end;
-
- type Arr is array(Long_Integer) of Rec;
+ type Arr is array(Long_Integer) of Boolean;
Obj : Arr; -- { dg-warning "Storage_Error will be raised" }
begin
+ Obj(1) := True;
Proc (Obj(1));
end;
« no previous file with comments | « gcc/gcc/testsuite/gnat.dg/alignment6.adb ('k') | gcc/gcc/testsuite/gnat.dg/pack9.adb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698