summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.dg/parse/crash5.C
blob: acf9e9d4bbaa82627a906a72ab8608c084225803 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-options "-w" }

class QString { // { dg-error "previous definition" }
  QString (const QString & a); // { dg-message "candidates" }
};

class QString { }; // { dg-error "redefinition" }

const QString q () {
  QString z; // { dg-error "matching" }
  int x;
  return x ? QString () : QString (); // { dg-error "matching" }
}
OpenPOWER on IntegriCloud