Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/init/ptrfn4.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 1830386684a0 |
children |
line wrap: on
line source
// { dg-do compile } // { dg-options "-Wmissing-braces" } struct S { }; typedef void (S::*fptr1) (int); struct A { fptr1 f; }; A a[] = { (fptr1) 0, }; // { dg-warning "missing braces around initializer" } A a2[] = { { (fptr1) 0 } };