OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [parse/] [crash5.C] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-options "-w" }
2
 
3
class QString { // { dg-error "previous definition" }
4
  QString (const QString & a); // { dg-message "QString::QString|candidate expects" }
5
};
6
 
7
class QString { }; // { dg-error "redefinition" }
8
 
9
const QString q () {
10
  QString z; // { dg-error "matching" }
11
  // { dg-message "candidate" "candidate note" { target *-*-* } 10 }
12
  int x;
13
  return x ? QString () : QString (); // { dg-error "matching" }
14
  // { dg-message "candidate" "candidate note" { target *-*-* } 13 }
15
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.