diff options
author | ed <ed@FreeBSD.org> | 2009-06-07 09:21:25 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2009-06-07 09:21:25 +0000 |
commit | 2ae812c77b393190175c91233c3348f526ddab1b (patch) | |
tree | 57fdd33d153490269ca615ac308de731d00669da /test/CodeGen/vector.c | |
parent | 265c92560db8af7e64dc328cb612076086a62bd1 (diff) | |
download | FreeBSD-src-2ae812c77b393190175c91233c3348f526ddab1b.zip FreeBSD-src-2ae812c77b393190175c91233c3348f526ddab1b.tar.gz |
Import Clang r73021.
Diffstat (limited to 'test/CodeGen/vector.c')
-rw-r--r-- | test/CodeGen/vector.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/vector.c b/test/CodeGen/vector.c index 2e753b4..1084f6d 100644 --- a/test/CodeGen/vector.c +++ b/test/CodeGen/vector.c @@ -11,3 +11,11 @@ __v4hi y = {1,2,3,4}; typedef int vty __attribute((vector_size(16))); int a() { vty b; return b[2LL]; } + +// PR4339 +typedef float vec4 __attribute__((vector_size(16))); + +void vac ( vec4* a, char b, float c ) +{ + (*a)[b] = c; +} |