From fdd75125b87f335ced93c0d9d88d0b3045fe9ecc Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Tue, 15 Jan 2008 19:55:41 +0000 Subject: [PATCH] Testcase for gimplify_expr crash caused by an unexpected placeholder_expr. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46006 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/FrontendAda/placeholder.adb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/FrontendAda/placeholder.adb diff --git a/test/FrontendAda/placeholder.adb b/test/FrontendAda/placeholder.adb new file mode 100644 index 00000000000..f33c9a5ab89 --- /dev/null +++ b/test/FrontendAda/placeholder.adb @@ -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;