xref: /llvm-project/clang/test/Parser/altivec-non-type-vector.c (revision 7deaeb2a056c1756ce6f2550d2ebb91b81b9ff29)
1 // RUN: %clang_cc1 -target-feature +altivec -fsyntax-only %s -triple powerpc64-ibm-aix-xcoff
2 // RUN: %clang_cc1 -target-feature +altivec -fsyntax-only %s -triple powerpc64le-ibm-linux-gnu
3 // RUN: %clang_cc1 -target-feature +altivec -fsyntax-only %s -triple powerpc64-linux-gnu
4 // RUN: %clang_cc1 -target-feature +altivec -fsyntax-only %s -triple powerpc-ibm-aix-xcoff
5 // RUN: %clang_cc1 -target-feature +altivec -fsyntax-only %s -triple powerpc-linux-gnu
6 
7 int vector(void);
8 
test(void)9 void test(void) {
10   vector unsigned int v = {0};
11 }
12