aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ADT/SmallVectorTest.cpp
diff options
context:
space:
mode:
authorFrancis Ricci <francisjricci@gmail.com>2017-06-11 18:52:25 +0000
committerFrancis Ricci <francisjricci@gmail.com>2017-06-11 18:52:25 +0000
commita5b6157297eba01c299ed359110244cbb560b723 (patch)
tree04ec8bc703c331826f080a53264eaba011757daf /llvm/unittests/ADT/SmallVectorTest.cpp
parent7289ba91651025808071e90d79e1619e9a88aa08 (diff)
downloadllvm-a5b6157297eba01c299ed359110244cbb560b723.zip
llvm-a5b6157297eba01c299ed359110244cbb560b723.tar.gz
llvm-a5b6157297eba01c299ed359110244cbb560b723.tar.bz2
[ADT] Suppress unused attribute warning in unit test
llvm-svn: 305166
Diffstat (limited to 'llvm/unittests/ADT/SmallVectorTest.cpp')
-rw-r--r--llvm/unittests/ADT/SmallVectorTest.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/unittests/ADT/SmallVectorTest.cpp b/llvm/unittests/ADT/SmallVectorTest.cpp
index 5903ce8..89f76197 100644
--- a/llvm/unittests/ADT/SmallVectorTest.cpp
+++ b/llvm/unittests/ADT/SmallVectorTest.cpp
@@ -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; }
};