[ADT] Suppress unused attribute warning in unit test

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305166 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Francis Ricci 2017-06-11 18:52:25 +00:00
parent 415e36dc36
commit a097b34ef7

View File

@ -444,11 +444,11 @@ TYPED_TEST(SmallVectorTest, AppendRepeatedNonForwardIterator) {
SCOPED_TRACE("AppendRepeatedTest");
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;
typedef __attribute__((used)) std::output_iterator_tag iterator_category;
typedef __attribute__((used)) int value_type;
typedef __attribute__((used)) int difference_type;
typedef __attribute__((used)) value_type *pointer;
typedef __attribute__((used)) value_type &reference;
operator int() { return 2; }
operator Constructable() { return 7; }
};