diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2013-04-06 21:48:51 +0300 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2013-04-06 21:48:51 +0300 |
| commit | 9701d4d555d2c393e5941180c3fda33b8426a08e (patch) | |
| tree | c787ca160921cddb8292bd0923ba89dafbb014a8 /test cases/objc | |
| parent | 5174c255b230d6cb1284550014acd0769194d2f4 (diff) | |
| download | meson-9701d4d555d2c393e5941180c3fda33b8426a08e.tar.gz | |
Added support for GNUStep.
Diffstat (limited to 'test cases/objc')
| -rw-r--r-- | test cases/objc/2 nsstring/meson.build | 5 | ||||
| -rw-r--r-- | test cases/objc/2 nsstring/stringprog.m | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/test cases/objc/2 nsstring/meson.build b/test cases/objc/2 nsstring/meson.build new file mode 100644 index 000000000..9edd646ae --- /dev/null +++ b/test cases/objc/2 nsstring/meson.build @@ -0,0 +1,5 @@ +project('nsstring', 'objc') + +dep = find_dep('gnustep', required : true) +exe = executable('stringprog', 'stringprog.m', deps : dep) +add_test('stringtest', exe) diff --git a/test cases/objc/2 nsstring/stringprog.m b/test cases/objc/2 nsstring/stringprog.m new file mode 100644 index 000000000..f1a2532b8 --- /dev/null +++ b/test cases/objc/2 nsstring/stringprog.m @@ -0,0 +1,10 @@ +#import<Foundation/NSString.h> + +int main(int argc, char **argv) { + int result; + NSString *str = [NSString new]; + result = [str length]; + [str release]; + return result; +} + |
