blob: fc223858cf162eed8883745558dfc523ff597379 (
plain)
1
2
3
4
5
6
7
8
|
; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s
; CHECK: cannot use argument of naked function
define void @test(ptr %ptr) naked {
getelementptr i8, ptr %ptr, i64 1
call void @llvm.trap()
unreachable
}
|