diff options
author | Mike Stump <mrs@apple.com> | 2006-09-23 00:27:26 +0000 |
---|---|---|
committer | Mike Stump <mrs@gcc.gnu.org> | 2006-09-23 00:27:26 +0000 |
commit | 45163b1afce7ab9176893ac9f06b87c285052604 (patch) | |
tree | 9bb2b7574c0b48278b1702b358d0e58b4e18e454 | |
parent | be66ce1fb3ee8857b997bf791c44e542099eea91 (diff) | |
download | gcc-45163b1afce7ab9176893ac9f06b87c285052604.zip gcc-45163b1afce7ab9176893ac9f06b87c285052604.tar.gz gcc-45163b1afce7ab9176893ac9f06b87c285052604.tar.bz2 |
* obj-c++.dg/encode-3.mm: Fix for 64-bit support.
From-SVN: r117165
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/obj-c++.dg/encode-3.mm | 14 |
2 files changed, 14 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a560131..55a77b4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 diff --git a/gcc/testsuite/obj-c++.dg/encode-3.mm b/gcc/testsuite/obj-c++.dg/encode-3.mm index c67a972..842a0bf 100644 --- a/gcc/testsuite/obj-c++.dg/encode-3.mm +++ b/gcc/testsuite/obj-c++.dg/encode-3.mm @@ -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; |