]> granicus.if.org Git - clang/commitdiff
[analyzer] Re-enable test I accidentally committed commented-out.
authorJordan Rose <jordan_rose@apple.com>
Mon, 7 Apr 2014 16:36:08 +0000 (16:36 +0000)
committerJordan Rose <jordan_rose@apple.com>
Mon, 7 Apr 2014 16:36:08 +0000 (16:36 +0000)
Thanks, Alex!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205720 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/dtor.cpp

index e410fc9083a003a00b6d798a2f043f03efb074f2..8d6e30a6c27c82dacd1cc32aa1cc2dadba5221c9 100644 (file)
@@ -426,11 +426,11 @@ namespace LifetimeExtension {
 
   // This case used to cause an unexpected "Undefined or garbage value returned
   // to caller" warning
-//  bool testNamedCustomDestructor() {
-//    if (CheckCustomDestructor c = CheckCustomDestructor())
-//      return true;
-//    return false;
-//  }
+  bool testNamedCustomDestructor() {
+    if (CheckCustomDestructor c = CheckCustomDestructor())
+      return true;
+    return false;
+  }
 
   bool testMultipleTemporariesCustomDestructor() {
     if (CheckCustomDestructor c = (CheckCustomDestructor(), CheckCustomDestructor()))