[Ada] Fix constraint error in Normalize_Pathname
authorPascal Obry <obry@adacore.com>
Tue, 29 May 2018 09:39:11 +0000 (09:39 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Tue, 29 May 2018 09:39:11 +0000 (09:39 +0000)
commitce09c3c07f3bae669c0152ba4d72a708cfe27d0f
tree82b60ad3dc0f7f2b454e9e075f3c1cf99500dd92
parentae3d5f110d3c81637f619f2396cc4816d391bd29
[Ada] Fix constraint error in Normalize_Pathname

Fix Normalize_Pathname to avoid a constraint error.

2018-05-29  Pascal Obry  <obry@adacore.com>

gcc/ada/

* libgnat/s-os_lib.adb (Normalize_Pathname): Fix handling of ".." in
the root directory.

gcc/testsuite/

* gnat.dg/normalize_pathname.adb: New testcase.

From-SVN: r260872
gcc/ada/ChangeLog
gcc/ada/libgnat/s-os_lib.adb
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/normalize_pathname.adb [new file with mode: 0644]