blob: 9a0a5ff7b4596505b9ca8b0c3ce79cc06b426144 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// { dg-do compile }
// This testcase used to seg fault (PR c++/38648)
// { dg-prune-output "initializer lists" }
char a[1];
int foo(
{
a = ""; // { dg-error "" }
return 0; // { dg-error "" }
} // { dg-error "" }
|