mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-19 02:42:58 +00:00
[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:
parent
415e36dc36
commit
a097b34ef7
@ -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; }
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user