Skip to content

Commit d215a98

Browse files
committed
update test
1 parent 2c2342f commit d215a98

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

test/cli/other_test.py

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

0 commit comments

Comments
 (0)