diff options
| author | Nate Begeman <natebegeman@mac.com> | 2009-06-26 18:22:18 +0000 |
|---|---|---|
| committer | Nate Begeman <natebegeman@mac.com> | 2009-06-26 18:22:18 +0000 |
| commit | 2ffd38444131b893bd16819a8194e733488e5543 (patch) | |
| tree | 02ff22934bd6fd9632f06976ae47301f056e8968 /clang/test | |
| parent | 6b1678d5d888a1998e7f101f63a288f2453c4daf (diff) | |
| download | bcm5719-llvm-2ffd38444131b893bd16819a8194e733488e5543.tar.gz bcm5719-llvm-2ffd38444131b893bd16819a8194e733488e5543.zip | |
OpenCL 1.0 Support:
Add support for scalar to vector and partially initialized vector constant initializers.
llvm-svn: 74299
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Sema/ext_vector_components.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/Sema/ext_vector_components.c b/clang/test/Sema/ext_vector_components.c index a5d270074ad..48903024d3c 100644 --- a/clang/test/Sema/ext_vector_components.c +++ b/clang/test/Sema/ext_vector_components.c @@ -5,6 +5,8 @@ typedef __attribute__(( ext_vector_type(3) )) float float3; typedef __attribute__(( ext_vector_type(4) )) float float4; typedef __attribute__(( ext_vector_type(16) )) float float16; +static float4 vec4_0 = (float4)0.5f; + static void test() { float2 vec2, vec2_2; float3 vec3; |

