1 // RUN: %clang_cc1 -triple thumbv7-apple-ios0.0.0 -analyze -analyzer-checker=core -analyzer-store=region -verify -fblocks -analyzer-opt-analyze-nested-blocks -Wno-objc-root-class %s 2 3 // <rdar://problem/11405978> - Handle casts of vectors to structs, and loading 4 // a value. 5 typedef float float32_t; 6 typedef __attribute__((neon_vector_type(2))) float32_t float32x2_t; 7 8 typedef struct 9 { 10 float x, y; 11 } Rdar11405978Vec; 12 13 float32x2_t rdar11405978_bar(); 14 float32_t rdar11405978() { 15 float32x2_t v = rdar11405978_bar(); 16 Rdar11405978Vec w = *(Rdar11405978Vec *)&v; 17 return w.x; // no-warning 18 } 19