mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-07 20:04:03 +00:00
Testcase causing the Ada front-end to create bogus constructor fields.
llvm-svn: 34926
This commit is contained in:
parent
964b80ff60
commit
8aee7f8a56
10
test/AdaFrontend/fat_fields.adb
Normal file
10
test/AdaFrontend/fat_fields.adb
Normal file
@ -0,0 +1,10 @@
|
||||
-- RUN: %llvmgcc -c %s -o /dev/null
|
||||
-- RUN: %llvmgcc -c %s -O2 -o /dev/null
|
||||
package body Fat_Fields is
|
||||
procedure Proc is
|
||||
begin
|
||||
if P = null then
|
||||
null;
|
||||
end if;
|
||||
end;
|
||||
end;
|
6
test/AdaFrontend/fat_fields.ads
Normal file
6
test/AdaFrontend/fat_fields.ads
Normal file
@ -0,0 +1,6 @@
|
||||
package Fat_Fields is
|
||||
pragma Elaborate_Body;
|
||||
type A is array (Positive range <>) of Boolean;
|
||||
type A_Ptr is access A;
|
||||
P : A_Ptr := null;
|
||||
end;
|
Loading…
Reference in New Issue
Block a user