4 extern void abort (void);
5 extern int strcmp (const char *, const char *);
21 Vec<const signed char> cv;
25 const char *enc = @encode(Vec<float>);
26 const char *enc2 = @encode(Vec<double>);
27 const char *enc3 = @encode(anonymous);
35 /* Darwin (at least, as of XCode 3.2.3/Darwin10) does not encode the read-only
36 attribute on the type. Arguably, this is a bug, but we are compatible
37 with this when -fnext-runtime is selected. */
38 #ifdef __NEXT_RUNTIME__
39 #define E3 "{?=f[10d]i" L "q{Vec<const signed char>=cc" L "q}}"
41 #define E3 "{?=f[10d]i" L "q{Vec<const signed char>=rcrc" L "q}}"
45 const char *encode = @encode(long);
47 if (strcmp (encode, L))
50 if (strcmp (enc, (const char *)"{Vec<float>=ff" L "q}"))
53 if (strcmp (enc2, (const char *)"{Vec<double>=dd" L "q}"))
56 if (strcmp (enc3, (const char *) E3))