aboutsummaryrefslogtreecommitdiff
path: root/test/FixIt/fixit.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-10-19 06:04:55 +0000
committerDouglas Gregor <dgregor@apple.com>2011-10-19 06:04:55 +0000
commit43f5103f8051bbac19022e6edaf7d9138b0f3c0f (patch)
tree2f0507637db90dcf86b4bf714f5aa6f49799784d /test/FixIt/fixit.cpp
parent13102ffbb00f1397fa02950e0cbc82d17be21792 (diff)
Improve the warning for cv-qualifiers on free functions, from Ahmed Charles!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142478 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FixIt/fixit.cpp')
-rw-r--r--test/FixIt/fixit.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/FixIt/fixit.cpp b/test/FixIt/fixit.cpp
index 785b92b2d8..96ce2ce097 100644
--- a/test/FixIt/fixit.cpp
+++ b/test/FixIt/fixit.cpp
@@ -107,4 +107,7 @@ void test (BD &br) {
aPtr = br; // expected-error {{assigning to 'A *' from incompatible type 'B'; take the address with &}}
}
+void foo1() const {} // expected-error {{type qualifier is not allowed on this function}}
+void foo2() volatile {} // expected-error {{type qualifier is not allowed on this function}}
+void foo3() const volatile {} // expected-error {{type qualifier is not allowed on this function}}