summaryrefslogtreecommitdiff
path: root/test/support
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2017-04-12 22:43:49 +0000
committerEric Fiselier <eric@efcs.ca>2017-04-12 22:43:49 +0000
commit39683f13779361f4f35ef71aa18e18bcfc0e799d (patch)
treeab6e4c720463fc9995d1809f899c405baa7d27fe /test/support
parent6d5fdc110f42a3d43029963d3fdb30714f79d074 (diff)
Fix incorrectly qualified return type from unique_ptr::get_deleter().
For reference deleter types the const qualifier on the return type of get_deleter() should be ignored, and a non-const deleter should be returned. This patch fixes a bug where "const deleter_type&" is incorrectly formed. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@300121 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/support')
-rw-r--r--test/support/test_macros.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/support/test_macros.h b/test/support/test_macros.h
index 3cde8cc6c..bb3bea7a8 100644
--- a/test/support/test_macros.h
+++ b/test/support/test_macros.h
@@ -184,7 +184,7 @@ struct is_same<T, T> { enum {value = 1}; };
} // namespace test_macros_detail
#define ASSERT_SAME_TYPE(...) \
- static_assert(test_macros_detail::is_same<__VA_ARGS__>::value, \
+ static_assert((test_macros_detail::is_same<__VA_ARGS__>::value), \
"Types differ uexpectedly")
#ifndef TEST_HAS_NO_EXCEPTIONS