repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
diagnostic
/
aka1.C
blob
37f8df9399d251128fbf8645ab17f61217009239
1
// 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." }