From: Francis Ricci Date: Sun, 11 Jun 2017 19:28:21 +0000 (+0000) Subject: [ADT] Use LLVM_ATTRIBUTE_USED instead of __attribute__ for unit test X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=030e5fedd78368de32d1181e0e143c3a52c280f7;p=llvm [ADT] Use LLVM_ATTRIBUTE_USED instead of __attribute__ for unit test git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305168 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/ADT/SmallVectorTest.cpp b/unittests/ADT/SmallVectorTest.cpp index 89f761975ea..bf81e6a1c8b 100644 --- a/unittests/ADT/SmallVectorTest.cpp +++ b/unittests/ADT/SmallVectorTest.cpp @@ -444,11 +444,11 @@ TYPED_TEST(SmallVectorTest, AppendRepeatedNonForwardIterator) { SCOPED_TRACE("AppendRepeatedTest"); struct output_iterator { - 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; + 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; } };