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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-options "-fshow-column -ansi -pedantic-errors -Wno-long-long" }
2
// PR c++/21908
3
 
4
struct virt { virt () {} virt (int i) {} };
5
struct der : public virtual virt { // { dg-message "8:der::der|candidate expects" }
6
  der (int i) : virt(i) {} // { dg-message "3:der::der|candidate expects" }
7
};
8
struct top : public der {
9
  top () {} // { dg-bogus "der\\(const" }
10
  // { dg-message "candidate" "candidate note" { target *-*-* } 9 }
11
};
12
// { dg-error "10:no matching function for call to 'der" "" { target *-*-* } 9 }

powered by: WebSVN 2.1.0

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