Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/cpp0x/initlist-array11.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
145:1830386684a0 | 152:2b5abeee2509 |
---|---|
1 // PR c++/93712 - ICE with ill-formed array list-initialization. | |
2 // { dg-do compile { target c++11 } } | |
3 | |
4 int f (const int (&)[2]); | |
5 | |
6 int g () | |
7 { | |
8 const int (&r)[2] = {1, "foo"}; // { dg-error "conversion" } | |
9 return f({1, "foo"}); // { dg-error "conversion" } | |
10 } |