testsuite: fix c23-constexpr-2a.c test to use dg-do run
[official-gcc.git] / gcc / testsuite / g++.dg / template / offsetof3.C
blobb17374645b20f5af40c6970983ad78f2f348c80d
1 // PR c++/64487
3 struct foo {
4       int member;
5 };
7 template < int N>
8 struct bar {};
10 template <int N>
11 struct qux {
12         static bar<N+__builtin_offsetof(foo,member)> static_member;
15 template <int N>
16 bar<N+__builtin_offsetof(foo,member)> qux<N>::static_member;
18 int main() { }