[libcxx-commits] [libcxx] [libc++][filesystem] Report an error for canonical("") (PR #215031)
Yordan Vásquez via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Sep 19 11:02:27 PDT 2026
vyordan wrote:
> Can we add a test for `weakly_canonical` to ensure that an empty string is accepted?
I found an existing test case that covers what you're asking for:
[weakly_canonical.pass.cpp#L39](https://github.com/llvm/llvm-project/blob/27ba493781215910f560b36cd5b3b2f6c93ec5a3/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.weakly_canonical/weakly_canonical.pass.cpp#L39)
`{"", fs::current_path()},`
https://github.com/llvm/llvm-project/pull/215031
More information about the libcxx-commits
mailing list