compilation cache: tests now part of test suite

This commit is contained in:
Araq 2011-10-27 23:25:34 +02:00
commit 2d54b85089
19 changed files with 250 additions and 46 deletions

22
tests/rodfiles/gtkex2.nim Executable file
View file

@ -0,0 +1,22 @@
import
glib2, gtk2
proc destroy(widget: pWidget, data: pgpointer){.cdecl.} =
main_quit()
var
window: PWidget
button: PWidget
nimrod_init()
window = window_new(WINDOW_TOPLEVEL)
button = button_new("Click me")
set_border_width(PContainer(Window), 5)
add(PContainer(window), button)
discard signal_connect(window, "destroy",
SIGNAL_FUNC(gtkex2.destroy), nil)
show(button)
show(window)
main()