They won’t receive any.
Direct shadowing works for direct lighting.
Ambient occlusion works for indirect lighting.
Because usually(not alway) direct lighting is much more intense than indirect it will look like that AO does not contribute to areas which are not in shadows but this is just because indirect part is just so much less intense.