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