Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.old-deja/g++.mike/p418.C @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
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 } |