]> granicus.if.org Git - clang/commitdiff
testcase for PR2263, fixed by Nate's r50903 patch.
authorChris Lattner <sabre@nondot.org>
Mon, 12 May 2008 18:31:17 +0000 (18:31 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 12 May 2008 18:31:17 +0000 (18:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50983 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/vector-assign.c

index 6f681813bc9e41222f79e4c561a4f984ed7b5d7a..f915603465dbf09d4294f9d901c6b5eaf6d4b821 100644 (file)
@@ -37,3 +37,9 @@ void f() {
   v5 = v3; // expected-error {{incompatible type assigning 'v1s', expected 'v4ss'}}
   v5 = v4; // expected-error {{incompatible type assigning 'v2f', expected 'v4ss'}}
 }
+
+// PR2263
+float f2(__attribute__((vector_size(16))) float a, int b) {
+   return a[b];
+}
+