xref: /aosp_15_r20/external/llvm/test/Assembler/invalid-metadata-function-local-attachments.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Workerdefine void @foo(i32 %v) {
4*9880d681SAndroid Build Coastguard Workerentry:
5*9880d681SAndroid Build Coastguard Worker; CHECK: <stdin>:[[@LINE+1]]:{{[0-9]+}}: error: invalid use of function-local name
6*9880d681SAndroid Build Coastguard Worker  ret void, !foo !{i32 %v}
7*9880d681SAndroid Build Coastguard Worker}
8