OSDN Git Service

2014-02-26 Fabien Chene <fabien@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / offsetof2.C
1 // PR c++/49085
2
3 template <class T>
4 struct A                        // { dg-error "declaration" }
5 {
6   int i, j;
7   int ar[__builtin_offsetof(A,j)]; // { dg-error "incomplete type" }
8 };
9
10 A<int> a;