The 2012 Audi A3 you intend on purchasing will pass the California smog check if its exhaust emissions fall below California's Emission Cut Scores and its Federal emission components have not been tampered with.
California law indicates a USED out-of-state vehicle (49-state emissions legal) which is equipped with the required Federal Emission Components (smog components originally installed by the manufacturer or OEM parts) is eligible for California registration as long as the vehicle's exhaust emissions fall within California's limits.