summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/pr33558.C
blob: 1a340af59724ccf2413808e4cbc211969dca285b (plain)
1
2
3
4
5
/* { dg-do compile } */

class X {
  mutable int &q; /* { dg-error "cannot be declared 'mutable'" } */
};