brintos

brintos / llvm-project-archived public Read only

0
0
Text · 549 B · 9a1c151 Raw
17 lines · plain
1; RUN: not llc -mtriple=x86_64 %s -o - 2>&1 | FileCheck %s2 3; Swift attributes should not be used with preserve_none.4 5declare preserve_nonecc void @foo(ptr swiftself)6 7; CHECK: error: <unknown>:0:0: in function bar void (ptr): Swift attributes can't be used with preserve_none8define preserve_nonecc void @bar(ptr swifterror) {9  ret void10}11 12; CHECK: error: <unknown>:0:0: in function qux void (ptr): Swift attributes can't be used with preserve_none13define void @qux(ptr %addr) {14  call preserve_nonecc void @foo(ptr swiftself %addr)15  ret void16}17