diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-02-10 11:05:11 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-02-10 11:05:11 +0000 |
commit | 63168c75333b0c8dc74e337d71fe3411b2781577 (patch) | |
tree | ccb5aebfa88fde0b5af9dee035c3cef23fe0a72f /clang/test/FixIt/fixit.cpp | |
parent | d98937b011eeefa7c4fd31480e9fdc8f7b85e575 (diff) | |
download | bcm5719-llvm-63168c75333b0c8dc74e337d71fe3411b2781577.tar.gz bcm5719-llvm-63168c75333b0c8dc74e337d71fe3411b2781577.zip |
PR11684, core issue 1417:
o Correct the handling of the restrictions on usage of cv-qualified and
ref-qualified function types.
o Fix a bug where such types were rejected in template type parameter default
arguments, due to such arguments not being treated as a template type arg
context.
o Remove the ExtWarn for usage of such types as template arguments; that was
a standard defect, not a GCC extension.
o Improve the wording and unify the code for diagnosing cv-qualifiers with the
code for diagnosing ref-qualifiers.
llvm-svn: 150244
Diffstat (limited to 'clang/test/FixIt/fixit.cpp')
-rw-r--r-- | clang/test/FixIt/fixit.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/FixIt/fixit.cpp b/clang/test/FixIt/fixit.cpp index 8f7d14c15d0..9ed4f3b0cff 100644 --- a/clang/test/FixIt/fixit.cpp +++ b/clang/test/FixIt/fixit.cpp @@ -162,9 +162,9 @@ void test (BD &br) { aPtr = br; // expected-error {{assigning to 'AD *' from incompatible type 'BD'; 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}} +void foo1() const {} // expected-error {{non-member function cannot have 'const' qualifier}} +void foo2() volatile {} // expected-error {{non-member function cannot have 'volatile' qualifier}} +void foo3() const volatile {} // expected-error {{non-member function cannot have 'const volatile' qualifier}} struct S { void f(int, char); }; int itsAComma, |