Landing: a3a473507088

Project / Subsystem

gcc / cobol

Date

2026-06-05

Author

Robert Dubner

Commit

a3a4735070882b6f179b30050615b0b344fc9a45

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
cobol
patch_id
commit_hash
a3a4735070882b6f179b30050615b0b344fc9a45
source_type
github
headline
Update COBOL tests for IBM COMP- formatting differences.
tldr
COBOL test suite updated to reflect correct IBM `COMP-1` and `COMP-2` formatting for numeric `DISPLAY` operations.
author
Robert Dubner
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • cobol
  • testing
  • ibm-dialect
  • data-formatting
discussion_id_link
bugzilla_pr
date
2026-06-05T00:00:00.000Z

This commit updates the COBOL test suite to correctly reflect the IBM-formatted COMP-1 and COMP-2 types when using the DISPLAY verb. Specifically, tests for displaying 1.23 now expect the output to be .123 01, aligning with the expected behavior of IBM COBOL for these numeric representations. This ensures the GCC COBOL frontend accurately emulates platform-specific formatting for these data types.