diff options
author | Davide Italiano <davide@freebsd.org> | 2017-06-10 23:18:32 +0000 |
---|---|---|
committer | Davide Italiano <davide@freebsd.org> | 2017-06-10 23:18:32 +0000 |
commit | d87d9e906bd553ecc0190d33d603b8d85418018d (patch) | |
tree | 25d28e9605c3745d8a808d607a0d962a4070fd7c /llvm/unittests/ADT/SmallVectorTest.cpp | |
parent | 77485bc89b6c1703c65433868a8d2b63313cfeb4 (diff) | |
download | llvm-d87d9e906bd553ecc0190d33d603b8d85418018d.zip llvm-d87d9e906bd553ecc0190d33d603b8d85418018d.tar.gz llvm-d87d9e906bd553ecc0190d33d603b8d85418018d.tar.bz2 |
[SmallVector] Reinstate the typedefs.
They're unused with recent versions of libstdc++ but older ones
(e.g. libstdc++ 4.9 still requires them). Maybe we should bump
the requirements on the minimum version to make GCC 7 happy, but
in the meanwhile we need to live with the warning.
llvm-svn: 305158
Diffstat (limited to 'llvm/unittests/ADT/SmallVectorTest.cpp')
-rw-r--r-- | llvm/unittests/ADT/SmallVectorTest.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/unittests/ADT/SmallVectorTest.cpp b/llvm/unittests/ADT/SmallVectorTest.cpp index 15687b3..5903ce8 100644 --- a/llvm/unittests/ADT/SmallVectorTest.cpp +++ b/llvm/unittests/ADT/SmallVectorTest.cpp @@ -446,6 +446,9 @@ TYPED_TEST(SmallVectorTest, AppendRepeatedNonForwardIterator) { struct output_iterator { typedef std::output_iterator_tag iterator_category; typedef int value_type; + typedef int difference_type; + typedef value_type *pointer; + typedef value_type &reference; operator int() { return 2; } operator Constructable() { return 7; } }; |