It's not valid code (maybe it can be made valid, but I'm not sure how). To trigger the crash fixed in r243987 requires a friend function with more than four template parameter lists. With this test we have at least some coverage. llvm-svn: 243989