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