1 // RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection \
2 // RUN: -verify %s 2>&1 | FileCheck %s
4 // expected-no-diagnostics
6 void clang_analyzer_printState(void);
16 @interface Parent : NSObject
18 @interface Child : Parent
25 id ClassAsID = [self class];
26 id Object = [[ClassAsID alloc] init];
27 Class TheSameClass = [Object class];
29 clang_analyzer_printState();
30 // CHECK: "class_object_types": [
31 // CHECK-NEXT: { "symbol": "conj_$[[#]]{Class, LC[[#]], S[[#]], #[[#]]}", "dyn_type": "Child", "sub_classable": true },
32 // CHECK-NEXT: { "symbol": "conj_$[[#]]{Class, LC[[#]], S[[#]], #[[#]]}", "dyn_type": "Child", "sub_classable": true }
35 // Let's make sure that the information is not GC'd away.
36 foo(ClassAsID, TheSameClass);