Skip to content

Commit 2371841

Browse files
committed
Testcase of incorrecly indented comment
1 parent 2dac6eb commit 2371841

File tree

2 files changed

+53
-10
lines changed

2 files changed

+53
-10
lines changed

testsuite/extractor/subprograms_gnat/subprograms_gnat.ads

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,21 @@ package Subprograms_GNAT is
278278
-- Externals the project has no need to be analyzed again, in this case
279279
-- the Default_Signature is returned.
280280

281+
----------------
282+
-- GNATdoc#90 --
283+
----------------
284+
285+
procedure Report_Preference_File_Error
286+
(Handle : access Kernel_Handle_Record;
287+
Filename : Virtual_File;
288+
Is_Saving : Boolean := True);
289+
-- Print out an error message in messages window, or display a dialog
290+
-- if GNAT Studio is exiting. Is_Saving controls whether we try to save
291+
-- or load the file.
292+
--
293+
-- Subprogram's description use incorrect alignment for description of the
294+
-- subprogram.
295+
281296
private
282297

283298
-- This is description of the package at the beginning of the private

testsuite/extractor/subprograms_gnat/test.out

Lines changed: 38 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
<CompilationUnit subprograms_gnat.ads:5:1-286:22>
1+
<CompilationUnit subprograms_gnat.ads:5:1-301:22>
22
<AdaNodeList subprograms_gnat.ads:5:1-5:17>
33
<WithClause subprograms_gnat.ads:5:1-5:17>
44
<LimitedAbsent subprograms_gnat.ads:5:1-5:1>
55
<PrivateAbsent subprograms_gnat.ads:5:1-5:1>
66
<NameList subprograms_gnat.ads:5:6-5:16>
77
<Id "Interfaces" subprograms_gnat.ads:5:6-5:16>
8-
<LibraryItem subprograms_gnat.ads:7:1-286:22>
8+
<LibraryItem subprograms_gnat.ads:7:1-301:22>
99
<PrivateAbsent subprograms_gnat.ads:5:17-5:17>
10-
<PackageDecl ["Subprograms_GNAT"] subprograms_gnat.ads:7:1-286:22>
10+
<PackageDecl ["Subprograms_GNAT"] subprograms_gnat.ads:7:1-301:22>
1111
**************************
1212
\/ RAW <<HEADER>> ()
1313
\/ RAW <<LEADING>> ()
@@ -21,8 +21,8 @@ This is description of the package at the top of the specification.
2121
**************************
2222
<DefiningName "Subprograms_GNAT" subprograms_gnat.ads:7:9-7:25>
2323
<Id "Subprograms_GNAT" subprograms_gnat.ads:7:9-7:25>
24-
<PublicPart subprograms_gnat.ads:7:28-281:1>
25-
<AdaNodeList subprograms_gnat.ads:9:4-274:53>
24+
<PublicPart subprograms_gnat.ads:7:28-296:1>
25+
<AdaNodeList subprograms_gnat.ads:9:4-288:36>
2626
<PragmaNode subprograms_gnat.ads:9:4-9:24>
2727
<Id "Preelaborate" subprograms_gnat.ads:9:11-9:23>
2828
<BaseAssocList subprograms_gnat.ads:9:23-9:23>
@@ -592,11 +592,39 @@ if so the project is to be analyzed again. Note that if there is no
592592
Externals the project has no need to be analyzed again, in this case
593593
the Default_Signature is returned.
594594
**************************
595-
<PrivatePart subprograms_gnat.ads:281:8-286:1>
596-
<AdaNodeList subprograms_gnat.ads:281:8-281:8>
597-
<EndName subprograms_gnat.ads:286:5-286:21>
598-
<Id "Subprograms_GNAT" subprograms_gnat.ads:286:5-286:21>
599-
<PragmaNodeList subprograms_gnat.ads:286:22-286:22>
595+
<SubpDecl ["Report_Preference_File_Error"] subprograms_gnat.ads:285:4-288:36>
596+
**************************
597+
\/ RAW <<CALLABLE>> ()
598+
599+
Subprogram's description use incorrect alignment for description of the
600+
subprogram.
601+
\/ PARAMETER handle (Handle)
602+
Print out an error message in messages window, or display a dialog
603+
if GNAT Studio is exiting. Is_Saving controls whether we try to save
604+
or load the file.
605+
\/ PARAMETER filename (Filename)
606+
Print out an error message in messages window, or display a dialog
607+
if GNAT Studio is exiting. Is_Saving controls whether we try to save
608+
or load the file.
609+
\/ PARAMETER is_saving (Is_Saving)
610+
Print out an error message in messages window, or display a dialog
611+
if GNAT Studio is exiting. Is_Saving controls whether we try to save
612+
or load the file.
613+
\/ SNIPPET ada ()
614+
procedure Report_Preference_File_Error
615+
(Handle : access Kernel_Handle_Record;
616+
Filename : Virtual_File;
617+
Is_Saving : Boolean := True)
618+
\/ DESCRIPTION ()
619+
620+
Subprogram's description use incorrect alignment for description of the
621+
subprogram.
622+
**************************
623+
<PrivatePart subprograms_gnat.ads:296:8-301:1>
624+
<AdaNodeList subprograms_gnat.ads:296:8-296:8>
625+
<EndName subprograms_gnat.ads:301:5-301:21>
626+
<Id "Subprograms_GNAT" subprograms_gnat.ads:301:5-301:21>
627+
<PragmaNodeList subprograms_gnat.ads:301:22-301:22>
600628
<CompilationUnit monitor_loop.ads:7:1-7:45>
601629
<AdaNodeList monitor_loop.ads:7:1-7:1>
602630
<LibraryItem monitor_loop.ads:7:1-7:45>

0 commit comments

Comments
 (0)