1// REQUIRES: arm-registered-target
2// RUN: %clang_cc1 -S -triple armv7-apple-darwin -target-feature +neon %s -emit-llvm -o - | FileCheck %s
3
4typedef struct _zend_ini_entry zend_ini_entry;
5struct _zend_ini_entry {
6  void *mh_arg1;
7};
8
9char a;
10
11const zend_ini_entry ini_entries[] = {
12  {  ((char*)&((zend_ini_entry*)0)->mh_arg1 - (char*)(void*)0)},
13};
14
15// PR7564
16struct GLGENH {
17  int : 27;
18  int EMHJAA : 1;
19};
20
21struct GLGENH ABHFBF = {1};
22
23typedef __attribute__(( ext_vector_type(2) )) unsigned int uint2;
24typedef __attribute__(( __vector_size__(8) )) unsigned int __neon_uint32x2_t;
25
26// rdar://8183908
27typedef unsigned int uint32_t;
28typedef __attribute__((neon_vector_type(2)))  uint32_t uint32x2_t;
29void foo() {
30    const uint32x2_t signBit = { (uint2) 0x80000000 };
31}
32
33// CHECK: %struct.fp_struct_foo = type { void ([1 x i32])* }
34struct fp_struct_bar { int a; };
35
36struct fp_struct_foo {
37  void (*FP)(struct fp_struct_bar);
38} G;
39