clang/test/Sema/arm-neon-decl-after-stmt.c
raw| 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 | |
| 9 | uint8x16_t x(void) { |
| 10 | return vshrq_n_u8(a, 8); |
| 11 | } |
| 12 | // expected-no-diagnostics |