Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/ext/label11.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// PR c++/38725 // { dg-do compile } // { dg-options "" } struct A {}; struct B : virtual A {}; int vi; void *vp; void f1 (int i) { goto *i; } void f2 (B b) { goto *b; // { dg-error "cannot convert" } } template <typename T> void f3 (T i) { goto *i; } void f3a () { f3 (vi); } template <typename T> void f4 (T i) { goto *i; } void f4a () { f4 (vp); }