1 // PR c++/40502 - [4.5 Regression] crash in cp_diagnostic_starter
3 // { dg-options "-O2" }
4 // { dg-skip-if "packed attribute missing for struct A" { "epiphany-*-*" } }
6 struct A { char x[12], y[35]; };
7 struct B { char z[50]; };
10 foo (char *dest, const char *__restrict src, __SIZE_TYPE__ n)
12 // This triggers a -Wstringop-overflow warning (pruned below).
13 __builtin___strncpy_chk (dest, src, n, __builtin_object_size (dest, 0));
16 void bar (const char *, int);
35 // { dg-prune-output "\\\[-Wstringop-overflow=]" }