Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Sema / riscv-bad-intrinsic-pragma.c
blobfc8e18ff130e0036e529ab72a4b26506da692279
1 // RUN: %clang_cc1 -triple riscv64 -target-feature +v %s -emit-llvm -o - \
2 // RUN: 2>&1 | FileCheck %s
4 #pragma clang riscv intrinsic vvvv
5 // CHECK: warning: unexpected argument 'vvvv' to '#pragma riscv'; expected 'vector' or 'sifive_vector' [-Wignored-pragmas]
7 #pragma clang riscv what + 3241
8 // CHECK: warning: unexpected argument 'what' to '#pragma riscv'; expected 'intrinsic' [-Wignored-pragmas]
9 #pragma clang riscv int i = 12;
10 // CHECK: warning: unexpected argument 'int' to '#pragma riscv'; expected 'intrinsic' [-Wignored-pragmas]
11 #pragma clang riscv intrinsic vector bar
12 // CHECK: warning: extra tokens at end of '#pragma clang riscv intrinsic' - ignored [-Wignored-pragmas]
14 #define FOO 0
16 int main()
18 return FOO;
21 // Make sure no more warnings
22 // CHECK-NOT: warning: