repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2018-10-23 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
expr
/
string-1.C
blob
9a0a5ff7b4596505b9ca8b0c3ce79cc06b426144
1
// { dg-do compile }
2
// This testcase used to seg fault (PR c++/38648)
3
4
// { dg-prune-output "initializer lists" }
5
6
char a[1];
7
8
int foo(
9
{
10
a = ""; // { dg-error "" }
11
return 0; // { dg-error "" }
12
} // { dg-error "" }