Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: gcc/gcc/testsuite/gcc.c-torture/execute/pr40668.c

Issue 3050029: [gcc] GCC 4.5.0=>4.5.1 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-toolchain.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: gcc/gcc/testsuite/gcc.c-torture/execute/pr40668.c
diff --git a/gcc/gcc/testsuite/gcc.c-torture/execute/pr40668.c b/gcc/gcc/testsuite/gcc.c-torture/execute/pr40668.c
index 70fe63f89167e2acb54f7fad5f74f52bc0c3792a..b860dd7c9ecced2f000db2408f7d50e39c4f358b 100644
--- a/gcc/gcc/testsuite/gcc.c-torture/execute/pr40668.c
+++ b/gcc/gcc/testsuite/gcc.c-torture/execute/pr40668.c
@@ -1,3 +1,8 @@
+#if (__SIZEOF_INT__ == 2)
+#define TESTVALUE 0x1234
+#else
+#define TESTVALUE 0x12345678
+#endif
static void
foo (unsigned int x, void *p)
{
@@ -10,7 +15,7 @@ bar (int type, void *number)
switch (type)
{
case 1:
- foo (0x12345678, number);
+ foo (TESTVALUE, number);
break;
case 7:
foo (0, number);
@@ -29,7 +34,7 @@ main (void)
{
unsigned int x;
bar (1, &x);
- if (x != 0x12345678)
+ if (x != TESTVALUE)
__builtin_abort ();
return 0;
}
« no previous file with comments | « gcc/gcc/testsuite/gcc.c-torture/execute/pr17377.c ('k') | gcc/gcc/testsuite/gcc.c-torture/unsorted/dump-noaddr.x » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698