Enable commented-out lines in a ParenTypeInTemplate test.
The comments in the test say these lines cause the test to crash, but this has
obviously been fixed in the meantime.
PiperOrigin-RevId: 541619926
diff --git a/nullability/test/templates.cc b/nullability/test/templates.cc
index 2de241a..83839a7 100644
--- a/nullability/test/templates.cc
+++ b/nullability/test/templates.cc
@@ -1114,9 +1114,8 @@
**s.b; // [[unsafe]]
*s.f;
*s.g;
- // TODO: Handle function pointers. The analysis currently crashes.
- // *s.f();
- // *s.g();
+ *s.f();
+ *s.g();
}
void targetNonnull(S<int* _Nonnull> s) {
@@ -1124,9 +1123,8 @@
**s.b;
*s.f;
*s.g;
- // TODO: Handle function pointers. The analysis currently crashes.
- // *s.f();
- // *s.g();
+ *s.f();
+ *s.g();
}
)cc");
@@ -1145,8 +1143,7 @@
***d.arg; // [[unsafe]]
*e.arg; // [[unsafe]]
- // TODO: Handle function pointers. The analysis currently crashes.
- // *e.arg();
+ *e.arg();
}
void targetNonnull(S<int* _Nonnull>(a), S<int* _Nonnull>(*(b)),
@@ -1158,8 +1155,7 @@
***d.arg;
*e.arg;
- // TODO: Handle function pointers. The analysis currently crashes.
- // *e.arg();
+ *e.arg();
}
)cc");
}