tradcpp: upgrade to 0.5.3
This commit is contained in:
11
cde/util/tradcpp/tests/t38.c
Normal file
11
cde/util/tradcpp/tests/t38.c
Normal file
@@ -0,0 +1,11 @@
|
||||
#define m() __FILE__:__LINE__
|
||||
__LINE__
|
||||
__FILE__
|
||||
__LINE__
|
||||
m()
|
||||
#line 500
|
||||
m()
|
||||
#line 600 "foo.c"
|
||||
m()
|
||||
#include "subdir/test.h"
|
||||
m()
|
||||
8
cde/util/tradcpp/tests/t38.good
Normal file
8
cde/util/tradcpp/tests/t38.good
Normal file
@@ -0,0 +1,8 @@
|
||||
2
|
||||
"t38.c"
|
||||
4
|
||||
"t38.c":5
|
||||
"t38.c":500
|
||||
"foo.c":600
|
||||
hello
|
||||
"foo.c":602
|
||||
21
cde/util/tradcpp/tests/t39.c
Normal file
21
cde/util/tradcpp/tests/t39.c
Normal file
@@ -0,0 +1,21 @@
|
||||
#define m(a,b) a::b
|
||||
=m(123,
|
||||
456)
|
||||
------
|
||||
=m
|
||||
(123, 456)
|
||||
------
|
||||
=m(
|
||||
123, 456)
|
||||
------
|
||||
=m(
|
||||
123,
|
||||
456
|
||||
)
|
||||
------
|
||||
=m(123,
|
||||
|
||||
456)
|
||||
------
|
||||
=m(123,
|
||||
456)
|
||||
11
cde/util/tradcpp/tests/t39.good
Normal file
11
cde/util/tradcpp/tests/t39.good
Normal file
@@ -0,0 +1,11 @@
|
||||
=123:: 456
|
||||
------
|
||||
=123:: 456
|
||||
------
|
||||
= 123:: 456
|
||||
------
|
||||
= 123:: 456
|
||||
------
|
||||
=123:: 456
|
||||
------
|
||||
=123:: 456
|
||||
6
cde/util/tradcpp/tests/t40.c
Normal file
6
cde/util/tradcpp/tests/t40.c
Normal file
@@ -0,0 +1,6 @@
|
||||
#define foo bar
|
||||
|
||||
#define bar(x) do x do
|
||||
|
||||
foo(de)
|
||||
|
||||
1
cde/util/tradcpp/tests/t40.good
Normal file
1
cde/util/tradcpp/tests/t40.good
Normal file
@@ -0,0 +1 @@
|
||||
do de do
|
||||
Reference in New Issue
Block a user