Debian Codegraph @

gcc/testsuite/g++.dg/torture/pr43905.C

raw
1 extern void sf ( __const char *);
2 struct Matrix{
3 int operator[](int n){
4 sf ( __PRETTY_FUNCTION__);
5 return 0;
6 }
7 int operator[](int n)const{
8 sf ( __PRETTY_FUNCTION__);
9 return 0;
10 }
11 };
12 void calcmy(Matrix const &b, Matrix &c, int k){
13 b[k];
14 c[k];
15 }