// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 -Wimplicit-fallthrough -Wunreachable-code-fallthrough %s
// expected-no-diagnostics
template<bool param>intfallthrough_template(inti){switch(i){case1:if(param)return3;[[clang::fallthrough]];// no warning here, for an unreachable annotation (in the fallthrough_template<true> case) in a template function
case2:return4;default:return5;}}templateintfallthrough_template<true>(int);