Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / template / offsetof1.C
blob1ee9be1e31a03915659ca752daec9adfcab644d6
1 // { dg-do compile }
2 // PR c++/17221
4 #include <cstddef>
6 template <int N> struct Bar;
7 template <> struct Bar<3> {};
9 template <class T>
10 struct Foo {
11    Bar<offsetof(T, a) + 3> k;
14 struct A { int a; };
16 template struct Foo<A>;