New test.
authorRichard Henderson <rth@cygnus.com>
Sun, 6 Dec 1998 00:46:00 +0000 (16:46 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Sun, 6 Dec 1998 00:46:00 +0000 (16:46 -0800)
From-SVN: r24118

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/981206-1.c [new file with mode: 0644]

index 746c5855dd1e67c9ef6ec5d2050454ea53e255ec..a4a27c4188a5fa2de0e12dd25193fbe9a5ab57b9 100644 (file)
@@ -1,3 +1,7 @@
+Sun Dec  6 00:40:12 1998  Richard Henderson  <rth@cygnus.com>
+
+       * gcc.c-torture/execute/981206.c: New test.
+
 1998-12-06  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
        * 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 (file)
index 0000000..12ec0ab
--- /dev/null
@@ -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);
+}