[analyzer] Commit a test case for r164579.
authorAnna Zaks <ganna@apple.com>
Wed, 26 Sep 2012 18:55:09 +0000 (18:55 +0000)
committerAnna Zaks <ganna@apple.com>
Wed, 26 Sep 2012 18:55:09 +0000 (18:55 +0000)
llvm-svn: 164715

clang/test/Analysis/inlining/DynDispatchBifurcate.m

index 6637dfd..1fffb65 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -analyze -analyzer-checker=core -analyzer-ipa=dynamic-bifurcate -verify %s
+// RUN: %clang_cc1 -analyze -analyzer-checker=core,osx -analyzer-ipa=dynamic-bifurcate -verify %s
 
 #include "InlineObjCInstanceMethod.h"
 
@@ -179,3 +179,13 @@ int testPropertySynthesized(PublicClass *p) {
   [p setValue1:0];
   return 5/[p value1];  
 }
+
+// Test definition not available edge case.
+@interface DefNotAvailClass : NSObject
+@end
+id testDefNotAvailableInlined(DefNotAvailClass *C) {
+  return [C mem]; // expected-warning {{instance method '-mem' not found}}
+}
+id testDefNotAvailable(DefNotAvailClass *C) {
+  return testDefNotAvailableInlined(C);
+}
\ No newline at end of file