| 45 | TEST_RESULT("Auto ref to value conversion", testAutoRefToValue, "14"); |
| 46 | |
| 47 | const char *testImplicitConversionOnReturn = |
| 48 | "class array{ int[10] arr; int size; }\r\n\ |
| 49 | void array:push_back(auto ref a){ arr[size++] = int(a); }\r\n\ |
| 50 | auto ref operator[](array ref arr, int index){ assert(index<arr.size); return &arr.arr[index]; }\r\n\ |
| 51 | \r\n\ |
| 52 | array a;\r\n\ |
| 53 | a.push_back(1); a.push_back(5);\r\n\ |