summaryrefslogtreecommitdiff
path: root/tests/run/cpp_iterators_over_attribute_of_rvalue_support.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/cpp_iterators_over_attribute_of_rvalue_support.h')
-rw-r--r--tests/run/cpp_iterators_over_attribute_of_rvalue_support.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/run/cpp_iterators_over_attribute_of_rvalue_support.h b/tests/run/cpp_iterators_over_attribute_of_rvalue_support.h
new file mode 100644
index 000000000..b4a10b5be
--- /dev/null
+++ b/tests/run/cpp_iterators_over_attribute_of_rvalue_support.h
@@ -0,0 +1,11 @@
+#include <vector>
+
+class HasIterableAttribute {
+public:
+ std::vector<int> vec;
+ HasIterableAttribute() {
+ for (int i = 1; i<=3; i++)
+ vec.push_back(i);
+ }
+ HasIterableAttribute(std::vector<int> vec) : vec(vec) {}
+};