new testcase reduced from the MultiSource/Applications/d failure last night.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20490 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-03-06 19:40:19 +00:00
parent bf4515e218
commit be876b6036

View File

@ -0,0 +1,14 @@
// RUN: %llvmgcc %s -S -o -
struct Y {};
struct XXX {
struct Y F;
};
void test1() {
(int)&((struct XXX*)(((void *)0)))->F;
}
void test2() {
&((struct XXX*)(((void *)0)))->F;
}