Skip to content

Commit

Permalink
test(spgroup#31): add tests sample
Browse files Browse the repository at this point in the history
  • Loading branch information
barbosamaatheus committed Dec 22, 2020
1 parent 307fd80 commit 0ebd4fc
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package br.unb.cic.analysis.samples;

// Conflict: [left, m():8] --> [right, foo():14]
public class OverridingAssignmentBranchConflictInterProceduralSample {
private int x;

public void m() {
x = 0; // LEFT
foo(); // RIGHT
}

private void foo() {
if (x >= 0) {
x = 1;
} else {
System.out.println(x);
}
;
}
}

0 comments on commit 0ebd4fc

Please sign in to comment.