Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / parse / offsetof4.C
blobba051480d1d63c61ad3e90594179523c9ed848f0
1 // { dg-do compile }
2 // Contributed by Bill Helfinstine <bhelf at flitterfly dot whirpon dot com>
3 // PR c++/14932: Allow subscript operator in offsetof
5 #include <cstddef>
7 struct A
9   int bar;
10   int foo[22];
13 const int off = offsetof(A, foo[12]);