[TySan] Don't report globals with incomplete types. (#121922)
[llvm-project.git] / llvm / test / MC / ELF / cfi-llvm-def-cfa-aspace-errors.s
blobfcd73127e9b8af65d26830be81f3abab1478ce2f
1 // RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o /dev/null 2>&1 | FileCheck %s
3 // Check that we diagnose malformed .cfi_llvm_def_aspace_cfa directives.
5 .cfi_startproc
7 // CHECK: [[#@LINE+1]]:{{[0-9]+}}: error: invalid register name
8 .cfi_llvm_def_aspace_cfa foo
10 // CHECK: [[#@LINE+1]]:{{[0-9]+}}: error: expected comma
11 .cfi_llvm_def_aspace_cfa %rcx .
13 // CHECK: [[#@LINE+1]]:{{[0-9]+}}: error: expected absolute expression
14 .cfi_llvm_def_aspace_cfa %rcx, .+1
16 // CHECK: [[#@LINE+1]]:{{[0-9]+}}: error: expected comma
17 .cfi_llvm_def_aspace_cfa %rcx, 1 .
19 // CHECK: [[#@LINE+1]]:{{[0-9]+}}: error: expected absolute expression
20 .cfi_llvm_def_aspace_cfa %rcx, 1, .+1
22 // CHECK: [[#@LINE+1]]:{{[0-9]+}}: error: expected newline
23 .cfi_llvm_def_aspace_cfa %rcx, 1, 1,
25 .cfi_endproc