mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
2aca733d9e
Otherwise, this causes issues when building with LTO for object files that use different values. Link: https://github.com/ClangBuiltLinux/linux/issues/1395 Reviewed By: dblaikie, MaskRay Differential Revision: https://reviews.llvm.org/D104342
11 lines
574 B
LLVM
11 lines
574 B
LLVM
; RUN: not opt -passes=verify %s -disable-output 2>&1 | FileCheck %s
|
|
define void @foo() "warn-stack-size"="42" { ret void }
|
|
define void @bar() "warn-stack-size"="-1" { ret void }
|
|
define void @baz() "warn-stack-size"="999999999999999999999" { ret void }
|
|
define void @qux() "warn-stack-size"="a lot lol" { ret void }
|
|
|
|
; CHECK-NOT: "warn-stack-size" takes an unsigned integer: 42
|
|
; CHECK: "warn-stack-size" takes an unsigned integer: -1
|
|
; CHECK: "warn-stack-size" takes an unsigned integer: 999999999999999999999
|
|
; CHECK: "warn-stack-size" takes an unsigned integer: a lot lol
|