]> granicus.if.org Git - clang/commit
Clean up the tests for warning about unused function results given the
authorChandler Carruth <chandlerc@gmail.com>
Mon, 21 Feb 2011 00:56:56 +0000 (00:56 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 21 Feb 2011 00:56:56 +0000 (00:56 +0000)
commit34d49471e0b6386aefdc0f6bd15e4a4876ce5db1
treef7f485f0894b02d0f24c28eda6b06875e191ed7a
parent751969957e4cbd4c8b5bf8508ab8620e24743005
Clean up the tests for warning about unused function results given the
appropriate attribute. Add a bit more testing that finds a pretty bad
regression (since ~forever) in this warning. Fix it with a nice 2 line
change. =]

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126098 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaStmt.cpp
test/SemaCXX/warn-unused-result.cpp [new file with mode: 0644]
test/SemaCXX/warn-unused-variables.cpp