This is a most interesting question.....
Are you thinking of creating this scenario or purchasing property with this existing condition? With permit requirements, inspections, county regulations, I would think this to be a most improbable situation.
But then....I've been wrong before!
Your best resource for accurate information will likely be your county/city code enforcement office.