Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
333d3ed70cc6f9edfb9cd8b8a035173bbc6a55a1
/
.
/
test
/
SemaCXX
/
inc-decrement-qualifiers.cpp
blob: ba837a9c06db937f2fb8422c50c2314a9639ccf0 [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -fsyntax-only -verify %s
volatile
int
i
;
const
int
&
inc
=
i
++;
const
int
&
dec
=
i
--;
const
int
&
incfail
=
++
i
;
// expected-error {{drops qualifiers}}
const
int
&
decfail
=
--
i
;
// expected-error {{drops qualifiers}}