diff options
author | Richard Trieu <rtrieu@google.com> | 2015-05-16 01:27:03 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2015-05-16 01:27:03 +0000 |
commit | db8c6dd29c7afd198fc4c4a034547f179874656f (patch) | |
tree | c0061416267cc6ab709b0267244d27774f51152b /test/SemaCXX/increment-decrement.cpp | |
parent | 791beb43d2f960eeeb4dc45333fe8f6ac03f821b (diff) | |
download | clang-db8c6dd29c7afd198fc4c4a034547f179874656f.tar.gz |
When emitting a dropped qualifier error, show which qualifiers are dropped.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@237505 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/increment-decrement.cpp')
-rw-r--r-- | test/SemaCXX/increment-decrement.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SemaCXX/increment-decrement.cpp b/test/SemaCXX/increment-decrement.cpp index 11b7d1e12f..4f131d76f0 100644 --- a/test/SemaCXX/increment-decrement.cpp +++ b/test/SemaCXX/increment-decrement.cpp @@ -5,8 +5,8 @@ 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}} +const int &incfail = ++i; // expected-error {{drops 'volatile' qualifier}} +const int &decfail = --i; // expected-error {{drops 'volatile' qualifier}} // PR7794 void f0(int e) { |