From: Richard Henderson Date: Sun, 6 Dec 1998 00:46:00 +0000 (-0800) Subject: New test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=11f39bb852bdf24da9b717b324c266553ff376e0;p=gcc.git New test. From-SVN: r24118 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 746c5855dd1..a4a27c4188a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +Sun Dec 6 00:40:12 1998 Richard Henderson + + * gcc.c-torture/execute/981206.c: New test. + 1998-12-06 Alexandre Oliva * g++.old-deja/g++.ns/template7.C: New test. diff --git a/gcc/testsuite/gcc.c-torture/execute/981206-1.c b/gcc/testsuite/gcc.c-torture/execute/981206-1.c new file mode 100644 index 00000000000..12ec0ab1897 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/981206-1.c @@ -0,0 +1,17 @@ +/* Verify unaligned address aliasing on Alpha EV[45]. */ + +static unsigned short x, y; + +void foo() +{ + x = 0x345; + y = 0x567; +} + +int main() +{ + foo (); + if (x != 0x345 || y != 0x567) + abort (); + exit (0); +}