From: yeom Date: Wed, 17 Mar 2010 18:51:07 +0000 (+0000) Subject: a test X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=038cafb68554557b57bc937113c151290b60fc87;p=IRC.git a test --- diff --git a/Robust/src/Tests/disjoint/crashTest1/makefile b/Robust/src/Tests/disjoint/crashTest1/makefile new file mode 100644 index 00000000..dcb012af --- /dev/null +++ b/Robust/src/Tests/disjoint/crashTest1/makefile @@ -0,0 +1,27 @@ +PROGRAM=test + +SOURCE_FILES=$(PROGRAM).java + +BUILDSCRIPT=~/research/Robust/src/buildscript +BSFLAGS= -mainclass Test -justanalyze -disjoint -disjoint-k 1 -disjoint-write-dots final -disjoint-alias-file aliases.txt normal -enable-assertions + +all: $(PROGRAM).bin + +view: PNGs + eog *.png & + +PNGs: DOTs + d2p *COMPLETE*.dot + +DOTs: $(PROGRAM).bin + +$(PROGRAM).bin: $(SOURCE_FILES) + $(BUILDSCRIPT) $(BSFLAGS) -o $(PROGRAM) $(SOURCE_FILES) + +clean: + rm -f $(PROGRAM).bin + rm -fr tmpbuilddirectory + rm -f *~ + rm -f *.dot + rm -f *.png + rm -f aliases.txt diff --git a/Robust/src/Tests/disjoint/crashTest1/test.java b/Robust/src/Tests/disjoint/crashTest1/test.java new file mode 100644 index 00000000..65ad0095 --- /dev/null +++ b/Robust/src/Tests/disjoint/crashTest1/test.java @@ -0,0 +1,17 @@ +public class Foo { + public Foo() {} + public Foo f; +} + +public class Test { + static public void main( String[] args ) { + Foo a = disjoint A new Foo(); + f1(a); + } + + static public void f1( Foo c ) { + Foo d = new Foo(); + c.f = d; + } + +}