xref: /llvm-project/llvm/test/Verifier/module-flags-note-gnu-property-elf-pauthabi.ll (revision d97d560fbf6ed26a198b3afe1594d7d63b88ab3a)
1; RUN: rm -rf %t && split-file %s %t && cd %t
2
3; CHECK: either both or no 'aarch64-elf-pauthabi-platform' and 'aarch64-elf-pauthabi-version' module flags must be present
4
5;--- err1.ll
6
7; RUN: not llvm-as err1.ll -o /dev/null 2>&1 | FileCheck %s
8
9!llvm.module.flags = !{!0}
10
11!0 = !{i32 1, !"aarch64-elf-pauthabi-platform", i32 2}
12
13;--- err2.ll
14
15; RUN: not llvm-as err2.ll -o /dev/null 2>&1 | FileCheck %s
16
17!llvm.module.flags = !{!0}
18
19!0 = !{i32 1, !"aarch64-elf-pauthabi-version", i32 31}
20