summaryrefslogtreecommitdiff
path: root/tests/girwriter/girtest.vala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/girwriter/girtest.vala')
-rw-r--r--tests/girwriter/girtest.vala15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/girwriter/girtest.vala b/tests/girwriter/girtest.vala
index 116e19c65..82d146ecc 100644
--- a/tests/girwriter/girtest.vala
+++ b/tests/girwriter/girtest.vala
@@ -14,6 +14,10 @@ namespace GirTest {
public void inv () {
}
+
+ public BoxedStruct ret () {
+ return this;
+ }
}
[CCode (has_type_id = false)]
@@ -31,6 +35,10 @@ namespace GirTest {
public void inv () {
}
+
+ public Struct ret () {
+ return this;
+ }
}
[GIR (visible = false)]
@@ -48,6 +56,13 @@ namespace GirTest {
[GIR (name = "RENAMED_CONSTANT")]
public const int NAMED_CONSTANT = 23;
+ public const bool TRUE_LITERAL = true;
+ public const bool FALSE_LITERAL = false;
+ public const char CHAR_LITERAL = 'y';
+ public const double REAL_LITERAL = 3.1415;
+ public const float FLOAT_LITERAL = -3.1415f;
+ public const int INTEGER_LITERAL = -42;
+
public enum EnumTest {
VALUE1,
VALUE2,