repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git]
/
clang
/
test
/
SemaCXX
/
ms_mutable_reference_member.cpp
blob
ae1389d3336354604edcc0b5572fd2fbd6c91302
1
// RUN: %clang_cc1 %s -fsyntax-only -verify -fms-compatibility
2
3
struct
S
{
4
mutable
int
&
a
;
// expected-warning {{'mutable' on a reference type is a Microsoft extension}}
5
S
(
int
&
b
) :
a
(
b
) {}
6
};
7
8
int
main
() {
9
int
a
=
0
;
10
const
S
s
(
a
);
11
s
.
a
=
10
;
12
return
s
.
a
+
a
;
13
}