The test case is based on the reduction from PR21679 and has to be freestanding to work correctly, since some of the expected errors (and some of the problems that were fixed) only occur when the end of the file is reached. llvm-svn: 226603