Skip to content

Commit e07677c

Browse files
committed
update test
1 parent 2c2342f commit e07677c

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

test/cli/other_test.py

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3164,6 +3164,61 @@ def test_check_unused_templates_func(tmp_path): # #13714
31643164
(void)(*((int*)0));
31653165
}
31663166
3167+
template<typename T>
3168+
static inline void f_t_3()
3169+
{
3170+
(void)(*((int*)0));
3171+
}
3172+
3173+
template<typename T>
3174+
const void *f_t_4()
3175+
{
3176+
(void)(*((int*)0));
3177+
}
3178+
3179+
template<typename T>
3180+
void f_t_5() __attribute__((noreturn))
3181+
{
3182+
(void)(*((int*)0));
3183+
}
3184+
3185+
template<typename T>
3186+
__attribute__((noreturn)) void f_t_6()
3187+
{
3188+
(void)(*((int*)0));
3189+
}
3190+
3191+
template<typename T>
3192+
__declspec(noreturn) void f_t_7()
3193+
{
3194+
(void)(*((int*)0));
3195+
}
3196+
3197+
template<typename T>
3198+
[[noreturn]] void f_t_8()
3199+
{
3200+
(void)(*((int*)0));
3201+
}
3202+
3203+
template<typename T>
3204+
void f_t_9() noexcept(true)
3205+
{
3206+
(void)(*((int*)0));
3207+
}
3208+
3209+
template<typename T>
3210+
void f_t_10() throw(true)
3211+
{
3212+
(void)(*((int*)0));
3213+
}
3214+
3215+
struct S {
3216+
template<typename T>
3217+
void f_t_11() const {
3218+
(void)(*((int*)0));
3219+
}
3220+
};
3221+
31673222
void f() {}
31683223
""")
31693224

0 commit comments

Comments
 (0)