Skip to content

Commit 0393c9d

Browse files
Add test for #10733 (danmar#8135)
Co-authored-by: chrchr-github <noreply@github.com>
1 parent 16fc50c commit 0393c9d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/testother.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2629,6 +2629,14 @@ class TestOther : public TestFixture {
26292629
check("void f(const std::array<int, 10> a[]) {}\n"); // #13524
26302630
ASSERT_EQUALS("", errout_str());
26312631

2632+
check("struct S {\n" // #10733
2633+
" std::vector<int> v;\n"
2634+
" using F = void (*)();\n"
2635+
" void func(F f);\n"
2636+
"};\n"
2637+
"void S::func(S::F f) {}\n");
2638+
ASSERT_EQUALS("", errout_str());
2639+
26322640
/*const*/ Settings settingsWin64 = settingsBuilder().platform(Platform::Type::Win64).build();
26332641
check("using ui64 = unsigned __int64;\n"
26342642
"ui64 Test(ui64 one, ui64 two) { return one + two; }\n",

0 commit comments

Comments
 (0)