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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [parse/] [error19.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 "-fshow-column -fmessage-length=0   -ansi -pedantic-errors -Wno-long-long " }
2
// PR C++/17867
3
 
4
struct A                        // { dg-message "8:operator=|no known conversion for implicit" }
5
{
6
  A(int);
7
};
8
 
9
const A& foo();
10
 
11
void bar()
12
{
13
  foo()=A(0); // { dg-error "12:no match for 'operator='" }
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.