opnsense-src/test/CodeGen/struct-init.c

13 lines
248 B
C
Raw Normal View History

2010-01-01 05:34:51 -05:00
// RUN: %clang_cc1 %s -emit-llvm -o -
2009-06-02 13:58:47 -04:00
typedef struct _zend_ini_entry zend_ini_entry;
struct _zend_ini_entry {
2009-10-14 14:03:49 -04:00
void *mh_arg1;
2009-06-02 13:58:47 -04:00
};
char a;
const zend_ini_entry ini_entries[] = {
2009-10-14 14:03:49 -04:00
{ ((char*)&((zend_ini_entry*)0)->mh_arg1 - (char*)(void*)0)},
2009-06-02 13:58:47 -04:00
};