We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e06e98f commit ada13aaCopy full SHA for ada13aa
1 file changed
test/testother.cpp
@@ -4787,6 +4787,12 @@ class TestOther : public TestFixture {
4787
" return h(s ? s->gnc() : 1);\n"
4788
"}\n");
4789
ASSERT_EQUALS("[test.cpp:5:11]: (style) Parameter 's' can be declared as pointer to const [constParameterPointer]\n", errout_str());
4790
+
4791
+ check("using IntPtr = int *;\n"
4792
+ "int* foo(IntPtr bar) {\n"
4793
+ " return bar = 0;\n"
4794
+ "}\n");
4795
+ ASSERT_EQUALS("", errout_str());
4796
}
4797
4798
void constArray() {
0 commit comments