| 4 | #include <string_view> |
| 5 | namespace exports::test::ownership { |
| 6 | wit::vector<wit::vector<wit::string>> |
| 7 | Foo(wit::vector<wit::vector<wit::string>> a) { |
| 8 | for (size_t i = 0; i < a.size(); ++i) { |
| 9 | for (size_t j = 0; j < a[i].size(); ++j) { |
| 10 | for (char &c : a[i][j]) { |
| 11 | c = std::toupper(c); |
| 12 | } |
| 13 | } |
| 14 | } |
| 15 | return a; |
| 16 | } |
| 17 | |
| 18 | void Bar(Thing a) { |
| 19 | assert(a.name.get_view() == "thing"); |