diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2010-07-14 06:36:18 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2010-07-14 06:36:18 +0000 |
commit | 5495f37302f7c82192dab1ce8d9c9fe76ed0ee37 (patch) | |
tree | 32d6d6983c6603ac3733ed1f2d8f10dee397c2b5 /test/SemaTemplate/deduction.cpp | |
parent | 773eb03d8c12639e4219869a97c3b45ff13a1533 (diff) | |
download | clang-5495f37302f7c82192dab1ce8d9c9fe76ed0ee37.tar.gz clang-5495f37302f7c82192dab1ce8d9c9fe76ed0ee37.tar.bz2 clang-5495f37302f7c82192dab1ce8d9c9fe76ed0ee37.tar.xz |
Wire up '-Wignored-qualifiers' to the warning on 'const' in 'const int f()'.
This flag and warning match GCC semantics. Also, move it to -Wextra as this is
a largely cosmetic issue and doesn't seem to mask problems. Subsequent fixes to
the tests which no longer by default emit the warning. Added explicit test
cases for both C and C++ behavior with the warning turned on.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108325 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/deduction.cpp')
-rw-r--r-- | test/SemaTemplate/deduction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaTemplate/deduction.cpp b/test/SemaTemplate/deduction.cpp index 25ffb67492..e8ff8d3a6d 100644 --- a/test/SemaTemplate/deduction.cpp +++ b/test/SemaTemplate/deduction.cpp @@ -101,7 +101,7 @@ namespace PR6257 { // PR7463 namespace PR7463 { - const int f (); // expected-warning{{type qualifier on return type has no effect}} + const int f (); template <typename T_> void g (T_&); // expected-note{{T_ = int}} void h (void) { g(f()); } // expected-error{{no matching function for call}} } |