// RUN: %clang_cc1 -mllvm -emptyline-comment-coverage=false -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only -main-file-name templates.cpp %s | FileCheck %s template void unused(T x) { return; } template int func(T x) { // CHECK: func if(x) // CHECK: func return 0; else return 1; int j = 1; } int main() { func(0); func(true); return 0; } namespace structural_value_crash { template void tpl_fn() { (void)p; } int arr[] = {1, 2, 3}; void test() { tpl_fn(); } }