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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [parse/] [error21.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
// PR c++/17393
2
// { dg-options "-Wall -fshow-column" }
3
 
4
struct A { };
5
 
6
void foo()
7
{
8
  // Check that we do not complain about an unused
9
  // compiler-generated variable.
10
  A& = a; // { dg-error "6:expected unqualified-id before '=' token" "6" }
11
  // { dg-error "8:'a' was not declared in this scope" "8" { target *-*-* } 10 }
12
}
13
 

powered by: WebSVN 2.1.0

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