PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / expr / cast10.C
blobcd3e0fc3c2719dbb8df0afb259abe8d4a05c8d2f
1 // { dg-do compile }
2 // This used to error out because we would try to convert m to a short.
5 struct a {};
6 void b() {
7     int a::*m;
8     a *c;
9     short p = reinterpret_cast<char*>(&(c->*m)) - reinterpret_cast<char*>(c);