diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/crash11.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/crash11.C | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/crash11.C b/gcc/testsuite/g++.old-deja/g++.jason/crash11.C new file mode 100644 index 000000000..1883e175a --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/crash11.C @@ -0,0 +1,9 @@ +// { dg-do assemble } +// Bug: g++ crashes on this input. + +struct A { + const char *p; +}; +const char foo[] = "bar"; +const A a = { foo }; +extern const A* ap = &a; //{ dg-warning "'ap' initialized and declared 'extern'" } |