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.
This commit is contained in:
parent
65e6b6a495
commit
723620dd6c
|
@ -6,4 +6,10 @@ else()
|
|||
add_test_pl_tests(
|
||||
"$<TARGET_FILE:goto-cc>"
|
||||
)
|
||||
add_test_pl_profile(
|
||||
"ansi-c-c++-front-end"
|
||||
"$<TARGET_FILE:goto-cc> -xc++ -D_Bool=bool"
|
||||
"-C;-I;test-c++-front-end;-s;c++-front-end"
|
||||
"CORE"
|
||||
)
|
||||
endif()
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
-D NEW_DEFINE
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^SIGNAL=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^SIGNAL=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE broken-test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE broken-test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE broken-test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE broken-test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -11,9 +11,15 @@ endif
|
|||
|
||||
test:
|
||||
@../test.pl -e -p -c $(exe)
|
||||
ifneq ($(BUILD_ENV_),MSVC)
|
||||
@../test.pl -e -p -c "$(exe) -xc++ -D_Bool=bool" -I test-c++-front-end -s c++-front-end
|
||||
endif
|
||||
|
||||
tests.log: ../test.pl
|
||||
@../test.pl -e -p -c $(exe)
|
||||
ifneq ($(BUILD_ENV_),MSVC)
|
||||
@../test.pl -e -p -c "$(exe) -xc++ -D_Bool=bool" -I test-c++-front-end -s c++-front-end
|
||||
endif
|
||||
|
||||
show:
|
||||
@for dir in *; do \
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^SIGNAL=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^SIGNAL=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE broken-test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE broken-test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE broken-test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE broken-test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE broken-test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE broken-test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE broken-test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^SIGNAL=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE gcc-only
|
||||
CORE gcc-only test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE gcc-only
|
||||
CORE gcc-only broken-test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE gcc-only
|
||||
CORE gcc-only test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE gcc-only
|
||||
CORE gcc-only test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE gcc-only
|
||||
CORE gcc-only test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE gcc-only
|
||||
CORE gcc-only test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE gcc-only
|
||||
CORE gcc-only test-c++-front-end
|
||||
preproc.i
|
||||
-mcpu=cortex-a15 -o linked-object.gb object.intel
|
||||
^EXIT=(64|1)$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE gcc-only
|
||||
CORE gcc-only test-c++-front-end
|
||||
preproc.i
|
||||
-mthumb -o linked-object.gb object.intel
|
||||
^EXIT=(64|1)$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE broken-test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
other.c
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE broken-test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
-DTEST=0
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
-DTEST=1
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
-DTEST=2
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE broken-test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE gcc-only
|
||||
CORE gcc-only test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE gcc-only
|
||||
CORE gcc-only broken-test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE gcc-only
|
||||
CORE gcc-only broken-test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE gcc-only
|
||||
CORE gcc-only broken-test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE gcc-only
|
||||
CORE gcc-only broken-test-c++-front-end
|
||||
main.i
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE gcc-only
|
||||
CORE gcc-only broken-test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE gcc-only
|
||||
CORE gcc-only broken-test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE gcc-only
|
||||
CORE gcc-only broken-test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE gcc-only
|
||||
CORE gcc-only broken-test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE gcc-only
|
||||
CORE gcc-only test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=(1|64)$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=(1|64)$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE broken-test-c++-front-end
|
||||
main.c
|
||||
|
||||
^CONVERSION ERROR$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^CONVERSION ERROR$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=(1|64)$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE broken-test-c++-front-end
|
||||
main.c
|
||||
other.c
|
||||
^EXIT=(64|1)$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
--verbosity 2
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE broken-test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE broken-test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE broken-test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE broken-test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
--function fun
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
main2.c --function foo
|
||||
^main symbol `foo' is ambiguous$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
main2.c --function foo
|
||||
^main symbol `foo' is ambiguous$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE broken-test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=(64|1)$
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=(64|1)$
|
||||
^SIGNAL=0$
|
||||
: duplicate member .*$
|
||||
(: duplicate member .*|already in compound scope)$
|
||||
^CONVERSION ERROR$
|
||||
--
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
CORE
|
||||
CORE test-c++-front-end
|
||||
main.c
|
||||
|
||||
^EXIT=0$
|
||||
|
|
Loading…
Reference in New Issue