https://en.wikipedia.org/wiki/Diesel_locomotive#Diesel–elect...
Obviously, ICEs that are strictly used to crank generators are common.
If you mean “is there data on whether that works in what is otherwise a battery-electric car”, that's called a series hybrid, and there are several production examples, including the Chevy Volt.
Long answer: Before WWII, there were luxury cars built this way. Manual transmissions were much harder to drive, so some luxury cars used a generator/motor pair as an automatic transmission.
WWII needs for copper drove them out of the market; and they never came back because it was simpler to just mate an oversized engine with a horrible automatic.
I don't think this is as cut and dried as you think. Generators are ~90% efficient. Gearboxes and differentials aren't 100% efficient either. If you are already carrying enough motor to propel you without an engine then you can size the ICE closer to average load than peak load potentially getting back a bit of efficiency.