Skip to content
Snippets Groups Projects
Commit 9ff4d369 authored by ben.franksen's avatar ben.franksen
Browse files

test: merged in tooLong.st from 2-0-13 branch

parent 1fbb59c0
No related branches found
No related tags found
No related merge requests found
......@@ -10,13 +10,16 @@ SNC = $(INSTALL_HOST_BIN)/snc
SNCFLAGS_DEFAULT += +m -i
SNCFLAGS_vxWorks += -nil-
#compiler tests, should fail with errors
#TESTPROD += scope
#this one may fail or not, depending on arch/system
#TESTPROD += tooLong
# Sequence programs and/or object files to create
TESTPROD += declarations
TESTPROD += local
TESTPROD += pvPutAsync
TESTPROD += pvSync
#compiler test, should fail with errors
#TESTPROD += scope
TESTPROD += sncDelay
TESTPROD += sncEntry
TESTPROD += sncEntryOpte
......
/*
* Test proper rejection of variables whose type is too long
* to allow faithfull representation in CA, i.e. 64 bit types.
* On linux-x86_64 this should give error messages for the l and ul
* variables. On systems where sizeof(int)==8 (64 bit Windows?)
* even i and ui should be rejected.
*/
program tooLong
int i;
assign i to "";
unsigned int ui;
assign ui to "";
long l;
assign l to "";
unsigned long ul;
assign ul to "";
ss tooLong {
state xy {
when () {
} state xy
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment