Skip to content

Commit ada13aa

Browse files
committed
Add test
1 parent e06e98f commit ada13aa

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

test/testother.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4787,6 +4787,12 @@ class TestOther : public TestFixture {
47874787
" return h(s ? s->gnc() : 1);\n"
47884788
"}\n");
47894789
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());
47904796
}
47914797

47924798
void constArray() {

0 commit comments

Comments
 (0)