diff options
| author | Richard Trieu <rtrieu@google.com> | 2013-11-01 22:12:15 +0000 |
|---|---|---|
| committer | Richard Trieu <rtrieu@google.com> | 2013-11-01 22:12:15 +0000 |
| commit | ed265941d4ef9961c68d02eaf5db2e3f6d1d4654 (patch) | |
| tree | 156900e985a57acf47a1e92d3e5034e01bf6ab24 /clang/test/SemaCXX/compare.cpp | |
| parent | e1e33f8e8248d73f2603a7542299fc3b405ad4a7 (diff) | |
| download | bcm5719-llvm-ed265941d4ef9961c68d02eaf5db2e3f6d1d4654.tar.gz bcm5719-llvm-ed265941d4ef9961c68d02eaf5db2e3f6d1d4654.zip | |
Add non-type template parameter test for disabled -Wtautological-compare
warning in template specializations.
llvm-svn: 193890
Diffstat (limited to 'clang/test/SemaCXX/compare.cpp')
| -rw-r--r-- | clang/test/SemaCXX/compare.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/compare.cpp b/clang/test/SemaCXX/compare.cpp index 563a15251c3..02b029a7762 100644 --- a/clang/test/SemaCXX/compare.cpp +++ b/clang/test/SemaCXX/compare.cpp @@ -399,4 +399,10 @@ namespace templates { less_than_zero<long>(num); less_than_zero<short>(num); } + + template<unsigned n> bool compare(unsigned k) { return k >= n; } + + void test12() { + compare<0>(42); + } } |

