(code: string)
| 5095 | // they emitted no constructor reference, unlike heap `new Calculator(0)`. An |
| 5096 | // `instantiates` ref to the constructed type is now emitted for both. |
| 5097 | const instNames = (code: string) => |
| 5098 | extractFromSource('f.cpp', `void run() {\n${code}\n}`) |
| 5099 | .unresolvedReferences.filter((r) => r.referenceKind === 'instantiates') |
| 5100 | .map((r) => r.referenceName); |
| 5101 | |
| 5102 | it('emits an instantiates ref for direct-init and brace-init', () => { |
| 5103 | expect(instNames('Calculator calc(0);')).toEqual(['Calculator']); |
no test coverage detected