We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2dac535 commit 92e6056Copy full SHA for 92e6056
1 file changed
test/testother.cpp
@@ -4749,6 +4749,12 @@ class TestOther : public TestFixture {
4749
" return [](int* p) { return *p; }(&i);\n"
4750
"}\n");
4751
ASSERT_EQUALS("[test.cpp:3:20]: (style) Parameter 'p' can be declared as pointer to const [constParameterPointer]\n", errout_str());
4752
+
4753
+ check("using IntPtr = int *;\n"
4754
+ "int* foo(IntPtr bar) {\n"
4755
+ " return bar = 0;\n"
4756
+ "}\n");
4757
+ ASSERT_EQUALS("", errout_str());
4758
}
4759
4760
void constArray() {
0 commit comments