summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/regress/49290.C
blob: 71e46c5796ba98c49847dd4cab40e3a3a0ebadfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
typedef unsigned T;
struct S
{
  T foo (void);
  static unsigned s1[16];
};
T
S::foo ()
{
  T u = *(T *) (s1 + 10);
  return u;
}