aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2004-08-02 01:05:47 +0000
committerBen Elliston <bje@gcc.gnu.org>2004-08-02 11:05:47 +1000
commita4e41fdeecdeadee4f4b221ef38ab38122d1fc18 (patch)
tree1ba093c88f82048925248629aabec927aad8d59e /gcc/testsuite
parent6a3bc5b1d0c8cb150c41aae2ebfdbfb2401542d2 (diff)
downloadgcc-a4e41fdeecdeadee4f4b221ef38ab38122d1fc18.zip
gcc-a4e41fdeecdeadee4f4b221ef38ab38122d1fc18.tar.gz
gcc-a4e41fdeecdeadee4f4b221ef38ab38122d1fc18.tar.bz2
Patch for PR target/16155.
2004-08-02 Ben Elliston <bje@au.ibm.com> PR target/16155 * config/rs6000/altivec.h: Replace typeof with __typeof__. [testsuite] 2004-08-02 Ben Elliston <bje@au.ibm.com> * gcc.dg/pr16155.c: New test. From-SVN: r85418
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/pr16155.c17
2 files changed, 22 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 28d487c..69ef9dc 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2004-08-02 Ben Elliston <bje@au.ibm.com>
+
+ PR target/16155
+ * gcc.dg/pr16155.c: New test.
+
2004-07-31 Joseph S. Myers <jsm@polyomino.org.uk>
* gcc.dg/redecl-2.c: New test.
diff --git a/gcc/testsuite/gcc.dg/pr16155.c b/gcc/testsuite/gcc.dg/pr16155.c
new file mode 100644
index 0000000..64df264
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/pr16155.c
@@ -0,0 +1,17 @@
+/* { dg-do compile { target powerpc*-*-* } } */
+/* { dg-options "-maltivec -ansi" } */
+
+/* PR 16155
+ * Compilation of a simple altivec test program fails if the -ansi flag is
+ * given to gcc, when compiling with -maltivec.
+ */
+
+#include <altivec.h>
+
+void foo(void)
+{
+ vector unsigned short a, b;
+ a = vec_splat(b, 0);
+}
+
+/* { dg-bogus "parse error before \"typeof\"" "-maltivec -mansi" { target powerpc*-*-* } 0 } */