Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.old-deja/g++.mike/p418.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // { dg-do assemble } |
2 // prms-id: 418 | |
3 | |
4 class Base { | |
5 public: | |
6 int foo; | |
7 }; | |
8 | |
9 class Derived : public Base { | |
10 public: | |
11 int bar; | |
12 }; | |
13 | |
14 void func(Base&); // { dg-message "" } referenced by error below | |
15 | |
16 void func2(const Derived& d) { | |
17 func(d); // { dg-error "" } should be error because of const | |
18 } |