* obj-c++.dg/encode-3.mm: Fix for 64-bit support.
From-SVN: r117165
This commit is contained in:
parent
be66ce1fb3
commit
45163b1afc
|
@ -1,3 +1,7 @@
|
||||||
|
2006-09-22 Mike Stump <mrs@apple.com>
|
||||||
|
|
||||||
|
* obj-c++.dg/encode-3.mm: Fix for 64-bit support.
|
||||||
|
|
||||||
2006-09-22 Zdenek Dvorak <dvorakz@suse.cz>
|
2006-09-22 Zdenek Dvorak <dvorakz@suse.cz>
|
||||||
|
|
||||||
PR tree-optimization/28888
|
PR tree-optimization/28888
|
||||||
|
|
|
@ -14,16 +14,22 @@ Vec<double> dd;
|
||||||
const char *enc = @encode(Vec<float>);
|
const char *enc = @encode(Vec<float>);
|
||||||
const char *enc2 = @encode(Vec<double>);
|
const char *enc2 = @encode(Vec<double>);
|
||||||
|
|
||||||
|
#ifdef __LP64__
|
||||||
|
#define L "q"
|
||||||
|
#else
|
||||||
|
#define L "l"
|
||||||
|
#endif
|
||||||
|
|
||||||
int main(void) {
|
int main(void) {
|
||||||
char *encode = @encode(long);
|
const char *encode = @encode(long);
|
||||||
|
|
||||||
if (strcmp (encode, "l"))
|
if (strcmp (encode, L))
|
||||||
abort();
|
abort();
|
||||||
|
|
||||||
if (strcmp (enc, "{Vec<float>=fflq}"))
|
if (strcmp (enc, "{Vec<float>=ff" L "q}"))
|
||||||
abort();
|
abort();
|
||||||
|
|
||||||
if (strcmp (enc2, "{Vec<double>=ddlq}"))
|
if (strcmp (enc2, "{Vec<double>=dd" L "q}"))
|
||||||
abort();
|
abort();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue