llvm.org GIT mirror llvm / a097b34
[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 Francis Ricci 2 years ago
1 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
443443 SCOPED_TRACE("AppendRepeatedTest");
444444
445445 struct output_iterator {
446 typedef std::output_iterator_tag iterator_category;
447 typedef int value_type;
448 typedef int difference_type;
449 typedef value_type *pointer;
450 typedef value_type &reference;
446 typedef __attribute__((used)) std::output_iterator_tag iterator_category;
447 typedef __attribute__((used)) int value_type;
448 typedef __attribute__((used)) int difference_type;
449 typedef __attribute__((used)) value_type *pointer;
450 typedef __attribute__((used)) value_type &reference;
451451 operator int() { return 2; }
452452 operator Constructable() { return 7; }
453453 };