Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/diagnostic/aka1.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// Basic test for typedef stripping in diagnostics. struct A { void f(); }; void A::f() { // We don't want an aka for the injected-class-name. A a = 0; // { dg-error "type .A. requested" } } typedef A B; // We do want an aka for a real typedef. B b = 0; // { dg-error "'B' {aka 'A'}" }