Changeset 2e04c7b3
- Timestamp:
- Jun 27, 2016, 6:01:15 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 472ca32, 4dcea3f
- Parents:
- c6b1105 (diff), 21610e3 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- src
- Files:
-
- 5 edited
- 58 moved
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Validate.cc
rc6b1105 r2e04c7b3 483 483 484 484 void ReturnChecker::visit( ReturnStmt * returnStmt ) { 485 // Previously this also checked for the existence of an expr paired with no return values on 486 // the function return type. This is incorrect, since you can have an expression attached to 487 // a return statement in a void-returning function in C. The expression is treated as if it 488 // were cast to void. 485 489 if ( returnStmt->get_expr() == NULL && returnVals.size() != 0 ) { 486 490 throw SemanticError( "Non-void function returns no values: " , returnStmt ); 487 } else if ( returnStmt->get_expr() != NULL && returnVals.size() == 0 ) {488 throw SemanticError( "void function returns values: " , returnStmt );489 491 } 490 492 } -
src/SynTree/Statement.cc
rc6b1105 r2e04c7b3 399 399 } 400 400 401 ImplicitCtorDtorStmt::ImplicitCtorDtorStmt( const ImplicitCtorDtorStmt & other ) : Statement( other ), callStmt( other.callStmt) {401 ImplicitCtorDtorStmt::ImplicitCtorDtorStmt( const ImplicitCtorDtorStmt & other ) : Statement( other ), callStmt( maybeClone( other.callStmt ) ) { 402 402 } 403 403 404 404 ImplicitCtorDtorStmt::~ImplicitCtorDtorStmt() { 405 delete callStmt; 405 406 } 406 407 -
src/tests/.expect/castError.txt
rc6b1105 r2e04c7b3 40 40 41 41 42 make: *** [ CastError] Error 142 make: *** [castError] Error 1 -
src/tests/.expect/constant0-1DP.txt
rc6b1105 r2e04c7b3 32 32 Error: duplicate object definition for x: const pointer to pointer to signed int 33 33 Error: duplicate object definition for 0: pointer to pointer to signed int 34 make: *** [ Constant0-1DP] Error 134 make: *** [constant0-1DP] Error 1 -
src/tests/.expect/constant0-1NDDP.txt
rc6b1105 r2e04c7b3 16 16 Error: duplicate object definition for x: const pointer to signed int 17 17 Error: duplicate object definition for 0: const pointer to signed int 18 make: *** [ Constant0-1NDDP] Error 118 make: *** [constant0-1NDDP] Error 1 -
src/tests/.expect/declarationErrors.txt
rc6b1105 r2e04c7b3 14 14 Error: invalid combination of storage classes in declaration of x28: static static volatile const instance of type Int 15 15 16 make: *** [ DeclarationErrors] Error 116 make: *** [declarationErrors] Error 1 -
src/tests/.expect/declarationSpecifier.txt
rc6b1105 r2e04c7b3 14 14 Error: invalid combination of storage classes in declaration of x28: static static volatile const instance of type Int 15 15 16 make: *** [ DeclarationSpecifier] Error 116 make: *** [declarationSpecifier] Error 1 -
src/tests/.expect/labelledExit.txt
rc6b1105 r2e04c7b3 1 1 CFA Version 1.0.0 (debug) 2 2 Error: 'break' outside a loop or switch 3 make: *** [ LabelledExit] Error 13 make: *** [labelledExit] Error 1 -
src/tests/.expect/scopeErrors.txt
rc6b1105 r2e04c7b3 9 9 CompoundStmt 10 10 11 make: *** [ ScopeErrors] Error 111 make: *** [scopeErrors] Error 1 -
src/tests/Makefile.am
rc6b1105 r2e04c7b3 20 20 21 21 .PHONY : list 22 EXTRA_PROGRAMS = fstream_test vector_test avl_test Constant0-1DP Constant0-1ND Constant0-1NDDP # build but do not install22 EXTRA_PROGRAMS = fstream_test vector_test avl_test constant0-1DP constant0-1ND constant0-1NDDP # build but do not install 23 23 24 24 fstream_test_SOURCES = fstream_test.c … … 27 27 28 28 all-local : 29 python test.py vector_test avl_test Operators NumericConstants Expression Enum AsmName Array Typeof Cast29 +python test.py vector_test avl_test operators numericConstants expression enum asmName array typeof cast 30 30 31 31 all-tests : … … 36 36 37 37 list : 38 python test.py --list38 +python test.py --list 39 39 40 Constant0-1DP : Constant0-1.c40 constant0-1DP : constant0-1.c 41 41 ${CC} ${CFLAGS} -DDUPS ${<} -o ${@} 42 42 43 Constant0-1ND : Constant0-1.c43 constant0-1ND : constant0-1.c 44 44 ${CC} ${CFLAGS} -DNEWDECL ${<} -o ${@} 45 45 46 Constant0-1NDDP : Constant0-1.c46 constant0-1NDDP : constant0-1.c 47 47 ${CC} ${CFLAGS} -DNEWDECL -DDUPS ${<} -o ${@} -
src/tests/Makefile.in
rc6b1105 r2e04c7b3 36 36 POST_UNINSTALL = : 37 37 EXTRA_PROGRAMS = fstream_test$(EXEEXT) vector_test$(EXEEXT) \ 38 avl_test$(EXEEXT) Constant0-1DP$(EXEEXT) \39 Constant0-1ND$(EXEEXT) Constant0-1NDDP$(EXEEXT)38 avl_test$(EXEEXT) constant0-1DP$(EXEEXT) \ 39 constant0-1ND$(EXEEXT) constant0-1NDDP$(EXEEXT) 40 40 subdir = src/tests 41 41 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in … … 48 48 CONFIG_CLEAN_FILES = 49 49 CONFIG_CLEAN_VPATH_FILES = 50 Constant0_1DP_SOURCES = Constant0-1DP.c51 Constant0_1DP_OBJECTS = Constant0-1DP.$(OBJEXT)52 Constant0_1DP_LDADD = $(LDADD)53 Constant0_1ND_SOURCES = Constant0-1ND.c54 Constant0_1ND_OBJECTS = Constant0-1ND.$(OBJEXT)55 Constant0_1ND_LDADD = $(LDADD)56 Constant0_1NDDP_SOURCES = Constant0-1NDDP.c57 Constant0_1NDDP_OBJECTS = Constant0-1NDDP.$(OBJEXT)58 Constant0_1NDDP_LDADD = $(LDADD)59 50 am_avl_test_OBJECTS = avl_test.$(OBJEXT) avl0.$(OBJEXT) avl1.$(OBJEXT) \ 60 51 avl2.$(OBJEXT) avl3.$(OBJEXT) avl4.$(OBJEXT) \ … … 62 53 avl_test_OBJECTS = $(am_avl_test_OBJECTS) 63 54 avl_test_LDADD = $(LDADD) 55 constant0_1DP_SOURCES = constant0-1DP.c 56 constant0_1DP_OBJECTS = constant0-1DP.$(OBJEXT) 57 constant0_1DP_LDADD = $(LDADD) 58 constant0_1ND_SOURCES = constant0-1ND.c 59 constant0_1ND_OBJECTS = constant0-1ND.$(OBJEXT) 60 constant0_1ND_LDADD = $(LDADD) 61 constant0_1NDDP_SOURCES = constant0-1NDDP.c 62 constant0_1NDDP_OBJECTS = constant0-1NDDP.$(OBJEXT) 63 constant0_1NDDP_LDADD = $(LDADD) 64 64 am_fstream_test_OBJECTS = fstream_test.$(OBJEXT) 65 65 fstream_test_OBJECTS = $(am_fstream_test_OBJECTS) … … 92 92 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) 93 93 am__v_GEN_0 = @echo " GEN " $@; 94 SOURCES = Constant0-1DP.c Constant0-1ND.c Constant0-1NDDP.c \95 $(avl_test_SOURCES)$(fstream_test_SOURCES) \94 SOURCES = $(avl_test_SOURCES) constant0-1DP.c constant0-1ND.c \ 95 constant0-1NDDP.c $(fstream_test_SOURCES) \ 96 96 $(vector_test_SOURCES) 97 DIST_SOURCES = Constant0-1DP.c Constant0-1ND.c Constant0-1NDDP.c \98 $(avl_test_SOURCES)$(fstream_test_SOURCES) \97 DIST_SOURCES = $(avl_test_SOURCES) constant0-1DP.c constant0-1ND.c \ 98 constant0-1NDDP.c $(fstream_test_SOURCES) \ 99 99 $(vector_test_SOURCES) 100 100 ETAGS = etags … … 261 261 -rm -f *.tab.c 262 262 263 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Constant0-1DP.Po@am__quote@264 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Constant0-1ND.Po@am__quote@265 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Constant0-1NDDP.Po@am__quote@266 263 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/array.Po@am__quote@ 267 264 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avl-private.Po@am__quote@ … … 272 269 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avl4.Po@am__quote@ 273 270 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avl_test.Po@am__quote@ 271 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/constant0-1DP.Po@am__quote@ 272 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/constant0-1ND.Po@am__quote@ 273 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/constant0-1NDDP.Po@am__quote@ 274 274 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fstream_test.Po@am__quote@ 275 275 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vector_int.Po@am__quote@ … … 634 634 635 635 all-local : 636 python test.py vector_test avl_test Operators NumericConstants Expression Enum AsmName Array Typeof Cast636 +python test.py vector_test avl_test operators numericConstants expression enum asmName array typeof cast 637 637 638 638 all-tests : … … 643 643 644 644 list : 645 python test.py --list646 647 Constant0-1DP : Constant0-1.c645 +python test.py --list 646 647 constant0-1DP : constant0-1.c 648 648 ${CC} ${CFLAGS} -DDUPS ${<} -o ${@} 649 649 650 Constant0-1ND : Constant0-1.c650 constant0-1ND : constant0-1.c 651 651 ${CC} ${CFLAGS} -DNEWDECL ${<} -o ${@} 652 652 653 Constant0-1NDDP : Constant0-1.c653 constant0-1NDDP : constant0-1.c 654 654 ${CC} ${CFLAGS} -DNEWDECL -DDUPS ${<} -o ${@} 655 655 -
src/tests/test.py
rc6b1105 r2e04c7b3 61 61 62 62 # build, skipping to next test on error 63 make_ret = sh(" make -j 8 %s 2> %s 1> /dev/null" % (test, out_file), dry_run)63 make_ret = sh("%s %s 2> %s 1> /dev/null" % (make_cmd, test, out_file), dry_run) 64 64 65 65 if make_ret == 0 : … … 84 84 85 85 def run_tests(tests, generate, dry_run) : 86 sh( 'make clean > /dev/null 2>&1', dry_run)86 sh("%s clean > /dev/null 2>&1" % make_cmd, dry_run) 87 87 sh('mkdir -p .out .expect', dry_run) 88 88 … … 102 102 print( "Done" ) 103 103 104 sh( 'make clean > /dev/null 2>&1', dry_run)104 sh("%s clean > /dev/null 2>&1" % make_cmd, dry_run) 105 105 106 106 return 1 if failed else 0 … … 141 141 sys.exit(1) 142 142 143 tests.sort() 144 make_flags = environ.get('MAKEFLAGS') 145 make_cmd = "make" if make_flags and "-j" in make_flags else "make -j8" 146 143 147 if options.list : 144 148 print("\n".join(tests))
Note: See TracChangeset
for help on using the changeset viewer.