summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/conversion/reinterpret3.C
blob: 62fb91444d403ddb72e6c18b9e875799a6fb7f09 (plain)
1
2
3
4
5
6
7
struct S {};

S s;

void f() {
  reinterpret_cast<const S>(s); // { dg-error "" }
}