[PATCH] D157477: [clang-repl] Additional test for disambiguation of templates
Jonas Hahnfeld via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 9 04:29:14 PDT 2023
Hahnfeld updated this revision to Diff 548558.
Hahnfeld retitled this revision from "[clang-repl] Add test for disambiguation of templates" to "[clang-repl] Additional test for disambiguation of templates".
Hahnfeld edited the summary of this revision.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157477/new/
https://reviews.llvm.org/D157477
Files:
clang/test/Interpreter/disambiguate-decl-stmt.cpp
Index: clang/test/Interpreter/disambiguate-decl-stmt.cpp
===================================================================
--- clang/test/Interpreter/disambiguate-decl-stmt.cpp
+++ clang/test/Interpreter/disambiguate-decl-stmt.cpp
@@ -11,6 +11,10 @@
namespace ns1 { template<typename T> void tmplt(T &) {}}
int arg_tmplt = 12; ns1::tmplt(arg_tmplt);
+namespace ns2 { template <typename T> struct S {}; }
+namespace ns3 { struct A { public: using S = int; }; }
+namespace ns3 { A::S f(A::S a); }
+
// ParseStatementOrDeclaration returns multiple statements.
#ifdef MS
int g_bFlag = 1;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157477.548558.patch
Type: text/x-patch
Size: 593 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230809/2ca3905f/attachment.bin>
More information about the cfe-commits
mailing list