1 // RUN: %clang_analyze_cc1 -analyzer-checker=core,alpha.core -verify %s
2 // expected-no-diagnostics
4 // Test function pointer casts.
5 typedef void* (*MyFuncTest1)(void);
7 MyFuncTest1 test1_aux(void);
11 p = ((void*) test1_aux());
12 if (p != ((void*) 0)) x = (*p)();
15 // Test casts from void* to function pointers.
16 void* test2(void *p) {
17 MyFuncTest1 fp = (MyFuncTest1) p;
21 // A cast from int onjective C property reference to int.
22 typedef signed char BOOL;
23 @protocol NSObject - (BOOL)isEqual:(id)object; @end
24 @interface NSObject <NSObject> {} - (id)init; @end
29 @interface RDR10087620 : NSObject {
32 @property (readwrite, nonatomic) RDR10087620Enum elem;
36 adium_media_ready_cb(RDR10087620 *InObj)
43 _Bool testLocAsIntegerToBool(void) {
44 return (long long)&testLocAsIntegerToBool;