mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 20:26:06 +00:00

The verifier already has a more general check that the attribute is legal for the position it is used in.
10 lines
192 B
LLVM
10 lines
192 B
LLVM
; RUN: not llvm-as < %s -o /dev/null 2>&1 | FileCheck %s
|
|
|
|
declare void @f()
|
|
|
|
define void @g() {
|
|
call void @f() align 8
|
|
; CHECK: Attribute 'align 8' does not apply to functions!
|
|
ret void
|
|
}
|