Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -emit-llvm -o - |
Nuno Lopes | 77e1dfc | 2008-06-06 16:41:08 +0000 | [diff] [blame] | 2 | |
| 3 | typedef struct _zend_ini_entry zend_ini_entry; |
| 4 | struct _zend_ini_entry { |
Mike Stump | 1eb4433 | 2009-09-09 15:08:12 +0000 | [diff] [blame] | 5 | void *mh_arg1; |
Nuno Lopes | 77e1dfc | 2008-06-06 16:41:08 +0000 | [diff] [blame] | 6 | }; |
| 7 | |
| 8 | char a; |
| 9 | |
| 10 | const zend_ini_entry ini_entries[] = { |
Mike Stump | 1eb4433 | 2009-09-09 15:08:12 +0000 | [diff] [blame] | 11 | { ((char*)&((zend_ini_entry*)0)->mh_arg1 - (char*)(void*)0)}, |
Nuno Lopes | 77e1dfc | 2008-06-06 16:41:08 +0000 | [diff] [blame] | 12 | }; |
Chris Lattner | 2bc0025 | 2010-07-05 18:03:30 +0000 | [diff] [blame] | 13 | |
| 14 | // PR7564 |
| 15 | struct GLGENH { |
| 16 | int : 27; |
| 17 | int EMHJAA : 1; |
| 18 | }; |
| 19 | |
| 20 | struct GLGENH ABHFBF = {1}; |