aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc.dg
diff options
context:
space:
mode:
authorNicola Pero <nicola.pero@meta-innovation.com>2011-03-04 19:09:34 +0000
committerNicola Pero <nicola@gcc.gnu.org>2011-03-04 19:09:34 +0000
commit78a8b16bad41d3d358ea1fe9e5c44d9270a377bf (patch)
tree8fb0ad1ab0297d7ed5e1f723043edf97ec6923b1 /gcc/testsuite/objc.dg
parent246a2730176b7ad6bc24e9397cf41ccda733f460 (diff)
downloadgcc-78a8b16bad41d3d358ea1fe9e5c44d9270a377bf.zip
gcc-78a8b16bad41d3d358ea1fe9e5c44d9270a377bf.tar.gz
gcc-78a8b16bad41d3d358ea1fe9e5c44d9270a377bf.tar.bz2
In gcc/testsuite/: 2011-03-04 Nicola Pero <nicola.pero@meta-innovation.com>
In gcc/testsuite/: 2011-03-04 Nicola Pero <nicola.pero@meta-innovation.com> * objc.dg/property/property-encoding-1.m: Tidied up testcase. * obj-c++.dg/property/property-encoding-1.mm: Likewise. From-SVN: r170684
Diffstat (limited to 'gcc/testsuite/objc.dg')
-rw-r--r--gcc/testsuite/objc.dg/property/property-encoding-1.m7
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/testsuite/objc.dg/property/property-encoding-1.m b/gcc/testsuite/objc.dg/property/property-encoding-1.m
index 64b35e7..dc12c31 100644
--- a/gcc/testsuite/objc.dg/property/property-encoding-1.m
+++ b/gcc/testsuite/objc.dg/property/property-encoding-1.m
@@ -89,22 +89,21 @@ void error (objc_property_t p)
}
/* Concatenate 3 strings and return the result. */
-char *concat (char *a, char *b, char *c)
+char *concat (const char *a, const char *b, const char *c)
{
/* We happily leak memory here. This is a test. */
- char *x = malloc (sizeof (char) * 128);
+ char *x = (char *)malloc (sizeof (char) * 128);
snprintf (x, 128, "%s%s%s", a, b, c);
return x;
}
#endif
-int main(int argc, void **args)
+int main (void)
{
#ifdef __OBJC2__
Class c = objc_getClass ("MySubClass");
objc_property_t p;
- const char *expected_result;
p = class_getProperty (c, "char_property");
/* Usually we expect "Tc,Vchar_property", but if a char is of