================
@@ -1126,4 +1126,37 @@ TEST_F(PointerFlowTest, NestedLambdaAssign) {
ASSERT_NE(Sum, nullptr);
EXPECT_EQ(*Sum, makeEdges(__LINE__, {{{"y", 1U}, {"x", 1U}}}));
}
+
+//////////////////////////////////////////////////////////////
+// Template is ignored. //
+//////////////////////////////////////////////////////////////
+TEST_F(PointerFlowTest, FunctionTemplate) {
+ ASSERT_EQ(setUpTest(R"cpp(
+ template <typename T>
+ T* f(T *p) {
+ int *q = p
+ return q;
+ }
+ )cpp"),
+ true);
----------------
steakhal wrote:
What is this parameter that is always set to `true`? Maybe that should be the
default?
https://github.com/llvm/llvm-project/pull/198927
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits