Skip to content

Commit 6f77765

Browse files
committed
test.cpp: added test for #113
1 parent 214bc60 commit 6f77765

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

test.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,18 @@ static void define19() // #124
807807
"const Testsuffix ;", preprocess(code));
808808
}
809809

810+
static void define20() // #113
811+
{
812+
const char code[] = "#define TARGS4 T1,T2,T3,T4\n"
813+
"#define FOOIMPL(T__CLASS, TARGS) void foo(const T__CLASS<TARGS>& x) { }\n"
814+
"#define FOOIMPL_4(T__CLASS) FOOIMPL(T__CLASS, TARGS4)\n"
815+
"FOOIMPL_4(y)\n";
816+
ASSERT_EQUALS("\n"
817+
"\n"
818+
"\n"
819+
"void foo ( const y < T1 , T2 , T3 , T4 > & x ) { }", preprocess(code));
820+
}
821+
810822

811823
static void define_invalid_1()
812824
{
@@ -3785,6 +3797,7 @@ int main(int argc, char **argv)
37853797
TEST_CASE(define17); // #185
37863798
TEST_CASE(define18); // #130
37873799
TEST_CASE(define19); // #124
3800+
TEST_CASE(define20); // #113
37883801
TEST_CASE(define_invalid_1);
37893802
TEST_CASE(define_invalid_2);
37903803
TEST_CASE(define_define_1);

0 commit comments

Comments
 (0)