MCPcopy Create free account
hub / github.com/WheretIB/nullc / pass

Function pass

tests/TestExtra.cpp:168–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166int ref rsize = new int;\r\n\
167int[] operator+(int[] a, b){ int[] res = new int[min(a.size, b.size)]; for(int i = 0; i < res.size; i++) res[i] = a[i] + b[i]; *rsize = res.size; return res; }\r\n\
168auto k = { 1, 2, 3, 4 } + { 4, 2, 5, 3 };\r\n\
169int[] pass(int[] a){ return a; }\r\n\
170auto i = pass({ 4, 7 });\r\n\
171int ksize = k.size; int isize = i.size;\r\n\
172int k1 = k[0], k2 = k[1], k3 = k[2], k4 = k[3];\r\n\

Callers 1

TestExtra.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected