summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/crash11.C
blob: 1883e175a6a294a83a6159524f0f860e7384b793 (plain)
1
2
3
4
5
6
7
8
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'" }