p10.cpp revision d73902121a93c3135cf53e2d724361cec1037d7e
1// RUN: clang-cc -verify %s
2// XFAIL: *
3
4typedef const int T0;
5typedef int& T1;
6
7struct s0 {
8  mutable const int f0; // expected-error{{'mutable' and 'const' cannot be mixed}}
9  mutable T0 f1; // expected-error{{'mutable' and 'const' cannot be mixed}}
10  mutable int &f2; // expected-error{{'mutable' cannot be applied to references}}
11  mutable T1 f3; // expected-error{{'mutable' cannot be applied to references}}
12  mutable struct s1 {}; // expected-error{{'mutable' cannot be applied to non-data members}}
13  mutable void im0(); // expected-error{{'mutable' cannot be applied to functions}}
14};
15