Direct-photon pair production in hadron collisions as a check of QCD