blob: 6247729c17b789e4347f4b15ef8b24263a4fc807 [file] [log] [blame]
NAKAMURA Takumie1adf812011-07-28 03:53:54 +00001// RUN: %clang_cc1 -S -triple armv7-apple-darwin %s -emit-llvm -o - | FileCheck %s
Nuno Lopes77e1dfc2008-06-06 16:41:08 +00002
3typedef struct _zend_ini_entry zend_ini_entry;
4struct _zend_ini_entry {
Mike Stump1eb44332009-09-09 15:08:12 +00005 void *mh_arg1;
Nuno Lopes77e1dfc2008-06-06 16:41:08 +00006};
7
8char a;
9
10const zend_ini_entry ini_entries[] = {
Mike Stump1eb44332009-09-09 15:08:12 +000011 { ((char*)&((zend_ini_entry*)0)->mh_arg1 - (char*)(void*)0)},
Nuno Lopes77e1dfc2008-06-06 16:41:08 +000012};
Chris Lattner2bc00252010-07-05 18:03:30 +000013
14// PR7564
15struct GLGENH {
16 int : 27;
17 int EMHJAA : 1;
18};
19
20struct GLGENH ABHFBF = {1};
Argyrios Kyrtzidis65e7a9e2011-02-01 00:52:10 +000021
22typedef __attribute__(( ext_vector_type(2) )) unsigned int uint2;
23typedef __attribute__(( __vector_size__(8) )) unsigned int __neon_uint32x2_t;
24
25// rdar://8183908
Eric Christopher55528b22011-07-28 00:25:28 +000026typedef unsigned int uint32_t;
27typedef __attribute__((neon_vector_type(2))) uint32_t uint32x2_t;
Argyrios Kyrtzidis65e7a9e2011-02-01 00:52:10 +000028void foo() {
29 const uint32x2_t signBit = { (uint2) 0x80000000 };
30}
Chris Lattner71305cc2011-07-15 05:16:14 +000031
Eric Christopher55528b22011-07-28 00:25:28 +000032// CHECK: %struct.fp_struct_foo = type { void ([1 x i32])* }
Chris Lattner71305cc2011-07-15 05:16:14 +000033struct fp_struct_bar { int a; };
34
35struct fp_struct_foo {
36 void (*FP)(struct fp_struct_bar);
37} G;