commit | ed8abf18329df67b0abcbb3a10458bd8c1d2a595 | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Thu Jul 08 06:14:04 2010 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Thu Jul 08 06:14:04 2010 +0000 |
tree | 9f6a81434fb6001b6bd5538874e7fd94d0c8eed2 | |
parent | 29457ff5cdfa86105e47e133010087979c866388 [diff] [blame] |
Reinstate the fix for PR7556. A silly use of isTrivial() was suppressing copies of objects with trivial copy constructors. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107857 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaCXX/warn-unused-variables.cpp b/test/SemaCXX/warn-unused-variables.cpp index 5ef7e70..6992cdc 100644 --- a/test/SemaCXX/warn-unused-variables.cpp +++ b/test/SemaCXX/warn-unused-variables.cpp
@@ -26,7 +26,7 @@ }; void test() { - A(); // expected-warning{{expression result unused}} + A(); B(17); C(); }