* obj-c++.dg/encode-3.mm: Fix for 64-bit support.

From-SVN: r117165
This commit is contained in:
Mike Stump 2006-09-23 00:27:26 +00:00 committed by Mike Stump
parent be66ce1fb3
commit 45163b1afc
2 changed files with 14 additions and 4 deletions

View File

@ -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>
PR tree-optimization/28888

View File

@ -14,16 +14,22 @@ Vec<double> dd;
const char *enc = @encode(Vec<float>);
const char *enc2 = @encode(Vec<double>);
#ifdef __LP64__
#define L "q"
#else
#define L "l"
#endif
int main(void) {
char *encode = @encode(long);
const char *encode = @encode(long);
if (strcmp (encode, "l"))
if (strcmp (encode, L))
abort();
if (strcmp (enc, "{Vec<float>=fflq}"))
if (strcmp (enc, "{Vec<float>=ff" L "q}"))
abort();
if (strcmp (enc2, "{Vec<double>=ddlq}"))
if (strcmp (enc2, "{Vec<double>=dd" L "q}"))
abort();
return 0;