aboutsummaryrefslogtreecommitdiffstats
path: root/test/C++Frontend/2005-01-03-StaticInitializers.cpp
blob: b215d3e3dab2726d0dd295ab8b3b0fac559c06d1 (plain)
1
2
3
4
5
6
7
8
// RUN: %llvmgxx %s -S -o - | grep '%XX = global int 4'

struct S {
  int  A[2];
};

int XX = (int)&(((struct S*)0)->A[1]);