summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/input.output/filesystems/fs.op.funcs
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2018-11-15 00:11:02 +0000
committerEric Fiselier <eric@efcs.ca>2018-11-15 00:11:02 +0000
commit22bdb3310809d8d2055afc262a0aa81c06100447 (patch)
tree7837e098dde33fe94b3c30897bf6191227e2215a /libcxx/test/std/input.output/filesystems/fs.op.funcs
parentddb039a199a520843388327f3e112469be9c4d8f (diff)
downloadbcm5719-llvm-22bdb3310809d8d2055afc262a0aa81c06100447.tar.gz
bcm5719-llvm-22bdb3310809d8d2055afc262a0aa81c06100447.zip
Get tests compiling with -Wunused-local-typedef
llvm-svn: 346914
Diffstat (limited to 'libcxx/test/std/input.output/filesystems/fs.op.funcs')
-rw-r--r--libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp b/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp
index bc77f3f6351..7a17f957700 100644
--- a/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp
@@ -108,7 +108,6 @@ struct Times {
};
Times GetTimes(path const& p) {
- using Clock = file_time_type::clock;
StatT st;
if (::stat(p.c_str(), &st) == -1) {
std::error_code ec(errno, std::generic_category());
@@ -127,7 +126,6 @@ TimeSpec LastAccessTime(path const& p) { return GetTimes(p).access; }
TimeSpec LastWriteTime(path const& p) { return GetTimes(p).write; }
std::pair<TimeSpec, TimeSpec> GetSymlinkTimes(path const& p) {
- using Clock = file_time_type::clock;
StatT st;
if (::lstat(p.c_str(), &st) == -1) {
std::error_code ec(errno, std::generic_category());
@@ -510,7 +508,6 @@ TEST_CASE(last_write_time_symlink_test)
TEST_CASE(test_write_min_time)
{
- using Clock = file_time_type::clock;
scoped_test_env env;
const path p = env.create_file("file", 42);
const file_time_type old_time = last_write_time(p);
@@ -545,10 +542,6 @@ TEST_CASE(test_write_min_time)
}
TEST_CASE(test_write_max_time) {
- using Clock = file_time_type::clock;
- using Sec = std::chrono::seconds;
- using Hours = std::chrono::hours;
-
scoped_test_env env;
const path p = env.create_file("file", 42);
const file_time_type old_time = last_write_time(p);
OpenPOWER on IntegriCloud