diff options
Diffstat (limited to 'libs/cassowary/ClBug1.cc')
-rw-r--r-- | libs/cassowary/ClBug1.cc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/libs/cassowary/ClBug1.cc b/libs/cassowary/ClBug1.cc new file mode 100644 index 0000000000..e7543757e3 --- /dev/null +++ b/libs/cassowary/ClBug1.cc @@ -0,0 +1,21 @@ +#include <cassowary/Cl.h> + +int main() +{ + ClVariable *var = new ClVariable(); + ClSimplexSolver *solver = new ClSimplexSolver(); + ClStayConstraint *stcn = new ClStayConstraint(*var,ClsWeak(),1.0); + + cout << *solver; + solver->AddConstraint(*stcn); + cout << *solver; + solver->RemoveConstraint(*stcn); + cout << *solver; +} +/* +The result is a segmentation fault when the constraint is removed. I +don't understand why. + +Anthony Beurive'" <beurive@labri.u-bordeaux.fr> +*/ + |