AT_SETUP([str.gob])
AT_DATA([main.c],
-[[#include "str.h"
+[[#include <config.h>
+#include "str.h"
int main(void)
{
AT_CHECK([test x"$total" = x"2"])
TEST_COMPILE_GOBJECT([main.c], [0], [], [stderr])
-AT_CHECK([awk -NF : '$1 == "main.c" && $2 == "15" { exit 42 }' stderr], [42])
+AT_CHECK([awk -NF : '$1 == "main.c" && $2 == "16" { exit 42 }' stderr], [42])
AT_CHECK([$CC $CFLAGS $LDFLAGS $LIBGOBJECT_LIBS -o main str.o main.o])
AT_SETUP([dynamic types])
AT_KEYWORDS([dynamic])
-AT_DATA([test.gob],
-[[class :Test from G:Object (dynamic)
+AT_DATA([test.gob], [[%ctop{
+#include <config.h>
+%}
+class :Test from G:Object (dynamic)
{
public void test(void)
{
AT_CHECK([gob2 test.gob])
AT_DATA([main.c],
-[[#include "test.h"
+[[#include <config.h>
+#include "test.h"
int main(void)
{
test_register_type(NULL);
AT_SETUP([dynamic type registration])
AT_KEYWORDS([dynamic runtime])
-AT_DATA([test.gob],
-[[%{
+AT_DATA([test.gob], [[%ctop{
+#include <config.h>
+%}
+%{
#include <stdio.h>
%}
class :Test from G:Object (dynamic)