mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[ADT] Don't use __used__ attribute on struct members in unit test
On some compilers, __used__ can only be applied to variables or functions. llvm-svn: 305188
This commit is contained in:
parent
3a14027960
commit
8ffb3b109e
@ -440,19 +440,19 @@ TYPED_TEST(SmallVectorTest, AppendNonIterTest) {
|
||||
this->assertValuesInOrder(this->theVector, 3u, 1, 7, 7);
|
||||
}
|
||||
|
||||
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; }
|
||||
};
|
||||
|
||||
TYPED_TEST(SmallVectorTest, AppendRepeatedNonForwardIterator) {
|
||||
SCOPED_TRACE("AppendRepeatedTest");
|
||||
|
||||
struct output_iterator {
|
||||
typedef LLVM_ATTRIBUTE_USED std::output_iterator_tag iterator_category;
|
||||
typedef LLVM_ATTRIBUTE_USED int value_type;
|
||||
typedef LLVM_ATTRIBUTE_USED int difference_type;
|
||||
typedef LLVM_ATTRIBUTE_USED value_type *pointer;
|
||||
typedef LLVM_ATTRIBUTE_USED value_type &reference;
|
||||
operator int() { return 2; }
|
||||
operator Constructable() { return 7; }
|
||||
};
|
||||
|
||||
this->theVector.push_back(Constructable(1));
|
||||
this->theVector.append(output_iterator(), output_iterator());
|
||||
this->assertValuesInOrder(this->theVector, 3u, 1, 7, 7);
|
||||
|
Loading…
x
Reference in New Issue
Block a user