diff options
Diffstat (limited to 'libstdc++-v3/testsuite/experimental/filesystem/operations/status.cc')
-rw-r--r-- | libstdc++-v3/testsuite/experimental/filesystem/operations/status.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/experimental/filesystem/operations/status.cc b/libstdc++-v3/testsuite/experimental/filesystem/operations/status.cc index 2c54494be29f..0f1730d82fcf 100644 --- a/libstdc++-v3/testsuite/experimental/filesystem/operations/status.cc +++ b/libstdc++-v3/testsuite/experimental/filesystem/operations/status.cc @@ -27,6 +27,8 @@ namespace fs = std::experimental::filesystem; void test01() { + bool test __attribute__((unused)) = false; + std::error_code ec; fs::file_status st1 = fs::status(".", ec); VERIFY( !ec ); @@ -39,6 +41,8 @@ test01() void test02() { + bool test __attribute__((unused)) = false; + fs::path p = __gnu_test::nonexistent_path(); std::error_code ec; |