Skip to content

Commit 723620d

Browse files
committed
Re-use C tests to exercise C++ front-end
Several C tests should also pass when using the C++ front-end. Use them to exercise it more and find and fix more bugs. Those that should pass, but currently don't, are tagged broken-test-c++-front-end.
1 parent 65e6b6a commit 723620d

File tree

88 files changed

+99
-87
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+99
-87
lines changed

regression/ansi-c/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,10 @@ else()
66
add_test_pl_tests(
77
"$<TARGET_FILE:goto-cc>"
88
)
9+
add_test_pl_profile(
10+
"ansi-c-c++-front-end"
11+
"$<TARGET_FILE:goto-cc> -xc++ -D_Bool=bool"
12+
"-C;-I;test-c++-front-end;-s;c++-front-end"
13+
"CORE"
14+
)
915
endif()

regression/ansi-c/Defines1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE
1+
CORE test-c++-front-end
22
main.c
33
-D NEW_DEFINE
44
^EXIT=0$

regression/ansi-c/Empty_Declaration1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE
1+
CORE test-c++-front-end
22
main.c
33

44
^SIGNAL=0$

regression/ansi-c/Forward_Declaration1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE
1+
CORE test-c++-front-end
22
main.c
33

44
^SIGNAL=0$

regression/ansi-c/Function_pointer1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE
1+
CORE test-c++-front-end
22
main.c
33

44
^EXIT=0$

regression/ansi-c/Header_files1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE
1+
CORE broken-test-c++-front-end
22
main.c
33

44
^EXIT=0$

regression/ansi-c/Initializer_cast2/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE
1+
CORE broken-test-c++-front-end
22
main.c
33

44
^EXIT=0$

regression/ansi-c/MMX1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE
1+
CORE broken-test-c++-front-end
22
main.c
33

44
^EXIT=0$

regression/ansi-c/MMX2/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE
1+
CORE broken-test-c++-front-end
22
main.c
33

44
^EXIT=0$

regression/ansi-c/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,15 @@ endif
1111

1212
test:
1313
@../test.pl -e -p -c $(exe)
14+
ifneq ($(BUILD_ENV_),MSVC)
15+
@../test.pl -e -p -c "$(exe) -xc++ -D_Bool=bool" -I test-c++-front-end -s c++-front-end
16+
endif
1417

1518
tests.log: ../test.pl
1619
@../test.pl -e -p -c $(exe)
20+
ifneq ($(BUILD_ENV_),MSVC)
21+
@../test.pl -e -p -c "$(exe) -xc++ -D_Bool=bool" -I test-c++-front-end -s c++-front-end
22+
endif
1723

1824
show:
1925
@for dir in *; do \

0 commit comments

Comments
 (0)