aboutsummaryrefslogtreecommitdiffstats
path: root/test/CFrontend/2005-03-06-OffsetOfStructCrash.c
blob: 91e686280233fa611cbcf6782f481309ed103d87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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;
}