Merged trunk at revision 161680 into branch.
[official-gcc.git] / gcc / testsuite / g++.dg / torture / pr43905.C
blob0e49a32a1dd5d9d4a25f3108edafbf204960c448
1 extern void sf ( __const char *);
2 struct Matrix{
3   int operator[](int n){
4     sf ( __PRETTY_FUNCTION__);
5   }
6   int operator[](int n)const{
7     sf ( __PRETTY_FUNCTION__);
8   }
9 };
10 void calcmy(Matrix const &b, Matrix &c, int k){
11   b[k];
12   c[k];