mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-17 21:42:12 +00:00

This attribute allows the compiler to assume that the function never recurses into itself, either directly or indirectly (transitively). This can be used among other things to demote global variables to locals. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252282 91177308-0d34-0410-b5e6-96231b3b80d8
8 lines
265 B
LLVM
8 lines
265 B
LLVM
; RUN: not llvm-dis < %s.bc 2>&1 | FileCheck %s
|
|
|
|
; CHECK: llvm-dis{{(\.EXE|\.exe)?}}: error: Unknown attribute kind (50)
|
|
|
|
; invalid.ll.bc has an invalid attribute number.
|
|
; The test checks that LLVM reports the error and doesn't access freed memory
|
|
; in doing so.
|