[llvm-commits] [llvm] r46006 - /llvm/trunk/test/FrontendAda/placeholder.adb
Duncan Sands
baldrick at free.fr
Tue Jan 15 11:55:42 PST 2008
Author: baldrick
Date: Tue Jan 15 13:55:41 2008
New Revision: 46006
URL: http://llvm.org/viewvc/llvm-project?rev=46006&view=rev
Log:
Testcase for gimplify_expr crash caused by an
unexpected placeholder_expr.
Added:
llvm/trunk/test/FrontendAda/placeholder.adb
Added: llvm/trunk/test/FrontendAda/placeholder.adb
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendAda/placeholder.adb?rev=46006&view=auto
==============================================================================
--- llvm/trunk/test/FrontendAda/placeholder.adb (added)
+++ llvm/trunk/test/FrontendAda/placeholder.adb Tue Jan 15 13:55:41 2008
@@ -0,0 +1,12 @@
+-- RUN: %llvmgcc -c %s
+procedure Placeholder is
+ subtype Bounded is Integer range 1 .. 5;
+ type Vector is array (Bounded range <>) of Integer;
+ type Interval (Length : Bounded := 1) is record
+ Points : Vector (1 .. Length);
+ end record;
+ An_Interval : Interval := (Length => 1, Points => (1 => 1));
+ generic The_Interval : Interval; package R is end;
+ package body R is end;
+ package S is new R (An_Interval);
+begin null; end;
More information about the llvm-commits
mailing list