From b4bdd6abd64045960b1d648cb5b7a8de6f292586 Mon Sep 17 00:00:00 2001 From: Erich Keane Date: Tue, 24 Oct 2017 13:51:07 +0000 Subject: [PATCH] Add Forgotten test for: Fix template parameter default args missed if redecled Addendum to differential revision: https://reviews.llvm.org/D39127 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316437 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../template-default-param-through-using.cpp | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 test/SemaCXX/template-default-param-through-using.cpp diff --git a/test/SemaCXX/template-default-param-through-using.cpp b/test/SemaCXX/template-default-param-through-using.cpp new file mode 100644 index 0000000000..4bf26d5811 --- /dev/null +++ b/test/SemaCXX/template-default-param-through-using.cpp @@ -0,0 +1,33 @@ +// RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics +namespace llvm { + template struct StringSet; + template struct Int; + template class Outer> + struct TemplTempl; +} + +namespace lld { + using llvm::StringSet; + using llvm::Int; + using llvm::TemplTempl; +}; + +namespace llvm { + template struct StringSet; +} + +template struct Temp{}; + +namespace llvm { + template struct StringSet{}; + template struct Int{}; + template class Outer = Temp> + struct TemplTempl{}; +}; + +namespace lld { + StringSet<> s; + Int<> i; + TemplTempl tt; +} -- 2.40.0