1 #define __noderef __attribute__((noderef)) 2 3 static void test_noderef(void) 4 { 5 int __noderef obj, *ptr; 6 typeof(ptr) ptr2 = ptr; 7 typeof(*ptr) *ptr3 = ptr; 8 typeof(obj) *ptr4 = ptr; 9 ptr = ptr; 10 ptr = &obj; 11 } 12 13 /* 14 * check-name: typeof-noderef 15 * check-known-to-fail 16 * 17 * check-error-start 18 * check-error-end 19 */ 20