libstdc++-v3-dg.exp (libstdc++-v3-list-sourcefiles): New function.