diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-24 21:23:23 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-24 21:23:23 +0000 |
commit | 5ceb27aaa26f13db94068cf2c3c1d888f43b5f28 (patch) | |
tree | 2060c2cda335a6dde039e2b72a68b1194fc42150 /gcc/testsuite/gcc.dg/pr29736.c | |
parent | dcccac3e9a1450221b44ffb52283e564b6331077 (diff) | |
download | gcc-5ceb27aaa26f13db94068cf2c3c1d888f43b5f28.tar.gz |
PR c/29736
* c-common.c (handle_vector_size_attribute): Disallow VECTOR_TYPE
or UNION_TYPE inner types.
* gcc.dg/pr29736.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119165 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr29736.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr29736.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr29736.c b/gcc/testsuite/gcc.dg/pr29736.c new file mode 100644 index 00000000000..54eb9aaaa78 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr29736.c @@ -0,0 +1,13 @@ +/* PR c/29736 */ + +int __attribute__ ((vector_size (8), vector_size (8))) v; /* { dg-error "invalid vector type" } */ + +extern int __attribute__ ((vector_size (8))) w; +int __attribute__ ((vector_size (8))) w; + +void +foo () +{ + v = v + v; + w = w + w; +} |