summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/expr/string-2.C
blob: 252fa70364a533d93556f46d0be4d347e07d0390 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do compile }
// This testcase used to seg fault (PR c++/38648)

char a[1];

int foo(a = "") // { dg-error "invalid array assignment" }
{ // { dg-error "" }
  return 0;
}