From: Jürg Billeter Date: Sat, 26 Sep 2009 13:45:28 +0000 (+0200) Subject: Add test for bug 593260 X-Git-Tag: 0.7.7~28 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ae4a7a167637b27b030463c14dfc73637ebba965;p=thirdparty%2Fvala.git Add test for bug 593260 --- diff --git a/tests/Makefile.am b/tests/Makefile.am index f75f8adb1..df434411a 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -43,6 +43,7 @@ TESTS = \ objects/test-026.vala \ objects/test-029.vala \ objects/test-034.vala \ + objects/bug593260.vala \ errors/errors.vala \ errors/bug596228.vala \ dbus/basic-types.test \ diff --git a/tests/objects/bug593260.vala b/tests/objects/bug593260.vala new file mode 100644 index 000000000..6c1e65886 --- /dev/null +++ b/tests/objects/bug593260.vala @@ -0,0 +1,10 @@ +class Foo { + public void do_foo () { + assert (this is Foo); + } +} + +void main() { + var foo = new Foo (); + foo.do_foo (); +}