blob: cd3e0fc3c2719dbb8df0afb259abe8d4a05c8d2f (
plain)
1
2
3
4
5
6
7
8
9
10
|
// { dg-do compile }
// This used to error out because we would try to convert m to a short.
struct a {};
void b() {
int a::*m;
a *c;
short p = reinterpret_cast<char*>(&(c->*m)) - reinterpret_cast<char*>(c);
}
|