aboutsummaryrefslogtreecommitdiff
path: root/test/tools/llvm-cfi-verify/AArch64/function-only-check.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/tools/llvm-cfi-verify/AArch64/function-only-check.s')
-rw-r--r--test/tools/llvm-cfi-verify/AArch64/function-only-check.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/tools/llvm-cfi-verify/AArch64/function-only-check.s b/test/tools/llvm-cfi-verify/AArch64/function-only-check.s
new file mode 100644
index 00000000000..30460c8cefc
--- /dev/null
+++ b/test/tools/llvm-cfi-verify/AArch64/function-only-check.s
@@ -0,0 +1,9 @@
+# RUN: llvm-cfi-verify -search-length-undef=6 %S/Inputs/function-only-check.o | FileCheck %s
+
+# CHECK-LABEL: {{^Instruction: .* \(PROTECTED\)}}
+# CHECK-NEXT: tiny.cc:9
+
+# CHECK: Expected Protected: 1 (100.00%)
+# CHECK: Unexpected Protected: 0 (0.00%)
+# CHECK: Expected Unprotected: 0 (0.00%)
+# CHECK: Unexpected Unprotected (BAD): 0 (0.00%)