[LLVM][IR] Use splat syntax when printing ConstantExpr based splats. (#116856)
[llvm-project.git] / clang / test / CodeGen / struct-init.c
blob01b238bfa1650bd38313a7f15804e8da1f6873ab
1 // RUN: %clang_cc1 -Wno-int-conversion -triple armv7-apple-darwin -target-feature +neon %s -emit-llvm -o - | FileCheck %s
3 typedef struct _zend_ini_entry zend_ini_entry;
4 struct _zend_ini_entry {
5 void *mh_arg1;
6 };
8 char a;
10 const zend_ini_entry ini_entries[] = {
11 { ((char*)&((zend_ini_entry*)0)->mh_arg1 - (char*)(void*)0)},
14 // PR7564
15 struct GLGENH {
16 int : 27;
17 int EMHJAA : 1;
20 struct GLGENH ABHFBF = {1};
22 typedef __attribute__(( ext_vector_type(2) )) unsigned int uint2;
23 typedef __attribute__(( __vector_size__(8) )) unsigned int __neon_uint32x2_t;
25 typedef unsigned int uint32_t;
26 typedef __attribute__((neon_vector_type(2))) uint32_t uint32x2_t;
27 void foo(void) {
28 const uint32x2_t signBit = { (uint2) 0x80000000 };
31 // CHECK: %struct.fp_struct_foo = type { ptr }
32 struct fp_struct_bar { int a; };
34 struct fp_struct_foo {
35 void (*FP)(struct fp_struct_bar);
36 } G;