view gcc/testsuite/g++.dg/conversion/reinterpret3.C @ 19:2b5abeee2509 default tip

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 1830386684a0
children
line wrap: on
line source

struct S {};

S s;

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