Eric Christopher | 3883e66 | 2011-07-26 22:17:02 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -emit-llvm -o - |
2 | |||||
3 | struct Y {}; | ||||
4 | struct XXX { | ||||
5 | struct Y F; | ||||
6 | }; | ||||
7 | |||||
8 | void test1() { | ||||
9 | (int)&((struct XXX*)(((void *)0)))->F; | ||||
10 | } | ||||
11 | |||||
12 | void test2() { | ||||
13 | &((struct XXX*)(((void *)0)))->F; | ||||
14 | } |