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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [diagnostic/] [aka1.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
// Basic test for typedef stripping in diagnostics.
2
 
3
struct A {
4
  void f();
5
};
6
 
7
void A::f() {
8
  // We don't want an aka for the injected-class-name.
9
  A a = 0;                      // { dg-error "type .A. requested" }
10
}
11
 
12
typedef A B;
13
 
14
// We do want an aka for a real typedef.
15
B b = 0;                        // { dg-error "B .aka A." }

powered by: WebSVN 2.1.0

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