blob: 5273138e4e5e9076c4134c1b5b9bd83f1ee0c22b [file] [log] [blame]
Jim Grosbachf7947052012-07-09 18:34:21 +00001// REQUIRES: arm-registered-target
NAKAMURA Takumie1adf812011-07-28 03:53:54 +00002// RUN: %clang_cc1 -S -triple armv7-apple-darwin %s -emit-llvm -o - | FileCheck %s
Nuno Lopes77e1dfc2008-06-06 16:41:08 +00003
4typedef struct _zend_ini_entry zend_ini_entry;
5struct _zend_ini_entry {
Mike Stump1eb44332009-09-09 15:08:12 +00006 void *mh_arg1;
Nuno Lopes77e1dfc2008-06-06 16:41:08 +00007};
8
9char a;
10
11const zend_ini_entry ini_entries[] = {
Mike Stump1eb44332009-09-09 15:08:12 +000012 { ((char*)&((zend_ini_entry*)0)->mh_arg1 - (char*)(void*)0)},
Nuno Lopes77e1dfc2008-06-06 16:41:08 +000013};
Chris Lattner2bc00252010-07-05 18:03:30 +000014
15// PR7564
16struct GLGENH {
17 int : 27;
18 int EMHJAA : 1;
19};
20
21struct GLGENH ABHFBF = {1};
Argyrios Kyrtzidis65e7a9e2011-02-01 00:52:10 +000022
23typedef __attribute__(( ext_vector_type(2) )) unsigned int uint2;
24typedef __attribute__(( __vector_size__(8) )) unsigned int __neon_uint32x2_t;
25
26// rdar://8183908
Eric Christopher55528b22011-07-28 00:25:28 +000027typedef unsigned int uint32_t;
28typedef __attribute__((neon_vector_type(2))) uint32_t uint32x2_t;
Argyrios Kyrtzidis65e7a9e2011-02-01 00:52:10 +000029void foo() {
30 const uint32x2_t signBit = { (uint2) 0x80000000 };
31}
Chris Lattner71305cc2011-07-15 05:16:14 +000032
Eric Christopher55528b22011-07-28 00:25:28 +000033// CHECK: %struct.fp_struct_foo = type { void ([1 x i32])* }
Chris Lattner71305cc2011-07-15 05:16:14 +000034struct fp_struct_bar { int a; };
35
36struct fp_struct_foo {
37 void (*FP)(struct fp_struct_bar);
38} G;