AA does this with a lot of its LGA flights (where the distance of direct flights is limited to 1,200 miles for the exception of DEN and DFW). The thing that s..ks is that mileage is awarded as a non stop flight rather than the two segments that one is actually flying.