]> granicus.if.org Git - clang/commit
Add tests for the uninitialized checks added in r128376. Also clean up
authorChandler Carruth <chandlerc@gmail.com>
Sun, 27 Mar 2011 20:35:59 +0000 (20:35 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 27 Mar 2011 20:35:59 +0000 (20:35 +0000)
commit349894ec70777da4f8fe714670aca43acd2e844e
tree0910810a130c24a414ddaa11f8da1d19b22c1fcc
parent7ba8f522f32d37dc86e54b3c202a3f30bc1685d0
Add tests for the uninitialized checks added in r128376. Also clean up
and flesh out the existing uninitialized testing for field initializers.

The tests come from Richard's original patch, but I've cleaned them up
a bit and ordered them more naturally.

Also, I added a test for the most simple base case:
int x = x;

And it turns out we miss this one! =[ That and another bad FIXME on the
field initializer checking are left in the test.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128394 91177308-0d34-0410-b5e6-96231b3b80d8
test/SemaCXX/uninitialized.cpp