mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 03:29:47 +08:00
Add another test for Ada Wide_Wide_String
In an earlier patch, I had written that I wanted to add this test: ptype Wide_Wide_String'("literal") ... but that it failed with the distro GNAT. Further investigation showed that it could be made to work by adding a function using Wide_Wide_String to the program -- this caused the type to end up in the debug info. This patch adds the test. I'm checking this in.
This commit is contained in:
@ -59,3 +59,6 @@ gdb_test "print my_wws" " = \"bcllo\"" \
|
||||
|
||||
gdb_test "print 'x' & my_ws" " = \"xwide\""
|
||||
gdb_test "print my_ws & 'y'" " = \"widey\""
|
||||
|
||||
gdb_test "ptype wide_wide_string'(\"wws\")" \
|
||||
"array \\(1 \\.\\. 3\\) of wide_wide_character"
|
||||
|
@ -24,6 +24,7 @@ procedure Foo is
|
||||
begin
|
||||
Do_Nothing (Some_Easy'Address); -- START
|
||||
Do_Nothing (Some_Larger'Address);
|
||||
Do_Nothing (My_Ws'Address);
|
||||
Do_Nothing (My_Ws);
|
||||
Do_Nothing (My_WWS);
|
||||
Do_Nothing (Some_Big'Address);
|
||||
end Foo;
|
||||
|
@ -20,4 +20,14 @@ package body Pck is
|
||||
null;
|
||||
end Do_Nothing;
|
||||
|
||||
procedure Do_Nothing (A : Wide_String) is
|
||||
begin
|
||||
null;
|
||||
end Do_Nothing;
|
||||
|
||||
procedure Do_Nothing (A : Wide_Wide_String) is
|
||||
begin
|
||||
null;
|
||||
end Do_Nothing;
|
||||
|
||||
end Pck;
|
||||
|
@ -18,5 +18,7 @@ with System;
|
||||
package Pck is
|
||||
|
||||
procedure Do_Nothing (A : System.Address);
|
||||
procedure Do_Nothing (A : Wide_String);
|
||||
procedure Do_Nothing (A : Wide_Wide_String);
|
||||
|
||||
end Pck;
|
||||
|
Reference in New Issue
Block a user