summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/torture/pr43905.C
blob: 0e49a32a1dd5d9d4a25f3108edafbf204960c448 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
extern void sf ( __const char *);
struct Matrix{
  int operator[](int n){
    sf ( __PRETTY_FUNCTION__);
  }
  int operator[](int n)const{
    sf ( __PRETTY_FUNCTION__);
  }
};
void calcmy(Matrix const &b, Matrix &c, int k){
  b[k];
  c[k];
}