Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ludviggunne committed Sep 24, 2024
1 parent 49d18e7 commit 6784f14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/testunusedfunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,13 @@ class TestUnusedFunctions : public TestFixture {
"}");
ASSERT_EQUALS("", errout_str());

check("template <class T> void f()\n" // #13117
check("template <class T> T f()\n" // #13117
"{\n"
" return 1;\n"
" return T(1);\n"
"}\n"
"int main(void)\n"
"{\n"
" auto *ptr = &f;\n"
" auto *ptr = &f<int>;\n"
" return ptr();\n"
"}\n");
ASSERT_EQUALS("", errout_str());
Expand Down

0 comments on commit 6784f14

Please sign in to comment.