xref: /llvm-project/clang/test/Sema/arm-neon-decl-after-stmt.c (revision 5a2e56b70e2fa7ad0d82e54bc4c741b16f05e475)
1 // RUN: %clang_cc1 -triple armebv7-linux-gnueabihf -target-feature +neon \
2 // RUN:  -Wdeclaration-after-statement -fsyntax-only -verify %s
3 // REQUIRES: arm-registered-target
4 // https://github.com/llvm/llvm-project/issues/54062
5 #include <arm_neon.h>
6 
7 uint8x16_t a;
8 
x(void)9 uint8x16_t x(void) {
10   return vshrq_n_u8(a, 8);
11 }
12 // expected-no-diagnostics
13