[clang] 48a8c7d - [analyzer] Make buildbots happy

Kirstóf Umann via cfe-commits cfe-commits at lists.llvm.org
Wed May 20 16:55:12 PDT 2020


Author: Kirstóf Umann
Date: 2020-05-21T01:54:50+02:00
New Revision: 48a8c7dcbfb90e917920e90fa2b3ec402e72f4cd

URL: https://github.com/llvm/llvm-project/commit/48a8c7dcbfb90e917920e90fa2b3ec402e72f4cd
DIFF: https://github.com/llvm/llvm-project/commit/48a8c7dcbfb90e917920e90fa2b3ec402e72f4cd.diff

LOG: [analyzer] Make buildbots happy

Added: 
    

Modified: 
    clang/test/Analysis/malloc.c

Removed: 
    


################################################################################
diff  --git a/clang/test/Analysis/malloc.c b/clang/test/Analysis/malloc.c
index 2cd9d2845877..a8aabf9f9ace 100644
--- a/clang/test/Analysis/malloc.c
+++ b/clang/test/Analysis/malloc.c
@@ -1843,9 +1843,10 @@ variable 'buf', which is not memory allocated by malloc() [unix.Malloc]}}
   }
 }
 
-(*crash_a)();
+(*crash_a)(); // expected-warning{{type specifier missing}}
 // A CallEvent without a corresponding FunctionDecl.
 crash_b() { crash_a(); } // no-crash
+// expected-warning at -1{{type specifier missing}} expected-warning at -1{{non-void}}
 
 // ----------------------------------------------------------------------------
 // False negatives.


        


More information about the cfe-commits mailing list