]> granicus.if.org Git - clang/commit
Enhancement to test for -ast-print
authorSerge Pavlov <sepavloff@gmail.com>
Fri, 4 Nov 2016 06:09:23 +0000 (06:09 +0000)
committerSerge Pavlov <sepavloff@gmail.com>
Fri, 4 Nov 2016 06:09:23 +0000 (06:09 +0000)
commit351cf00f4839eb42c9c4a247302a8c625d835d1f
treec98551c1230adb4dcddcb31fd3ccde6156611512
parent0b0e503e9c9a28574c141c1fd3f0ca8ebffeb801
Enhancement to test for -ast-print

Present tests for the functionality provided by command lime option
`-ast-print` check only absence of crash. This change tries to make
testing better, - the output produced by the compiler is compiled again
with option `-print-ast` and both outputs are compared. Such test at
least checks that the output is valid code. This change fixes only the
test for pure C.

This is recommit of r285882.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@285981 91177308-0d34-0410-b5e6-96231b3b80d8
test/Coverage/ast-printing.c