summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/conversion/reinterpret1.C
blob: d4567822e2a0b81b5b99e50dffcd0bac82be40a5 (plain)
1
2
3
4
5
6
// PR c++/15076

struct Y { Y(int &); };

int v;
Y y1(reinterpret_cast<int>(v));  // { dg-error "" }