summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/builtins/memops-asm.c
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2008-05-21 12:36:41 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2008-05-21 12:36:41 +0000
commite6bd3967e54965d9b07823192c9772d71ba2d10b (patch)
tree6d0b2480705fa940efad2d1f74cddcb48d7b0511 /gcc/testsuite/gcc.c-torture/execute/builtins/memops-asm.c
parent1336ab126a09c21576c34cc2da416d114b6cab4b (diff)
downloadgcc-e6bd3967e54965d9b07823192c9772d71ba2d10b.tar.gz
2008-05-21 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk r135714 * gcc/basilys.h: explicit [re-]declaration of fatail_error. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@135715 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/execute/builtins/memops-asm.c')
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/builtins/memops-asm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/memops-asm.c b/gcc/testsuite/gcc.c-torture/execute/builtins/memops-asm.c
index e793778053a..ed2b06cf06f 100644
--- a/gcc/testsuite/gcc.c-torture/execute/builtins/memops-asm.c
+++ b/gcc/testsuite/gcc.c-torture/execute/builtins/memops-asm.c
@@ -22,12 +22,16 @@ struct A { char c[32]; } a = { "foobar" };
char x[64] = "foobar", y[64];
int i = 39, j = 6, k = 4;
+extern int inside_main;
+
void
main_test (void)
{
struct A b = a;
struct A c = { { 'x' } };
+ inside_main = 1;
+
if (memcmp (b.c, x, 32) || c.c[0] != 'x' || memcmp (c.c + 1, x + 32, 31))
abort ();
if (__builtin_memcpy (y, x, i) != y || memcmp (x, y, 64))