1 ; RUN: not llc -mtriple=x86_64 %s -o - 2>&1 | FileCheck %s
3 ; Swift attributes should not be used with preserve_none.
5 declare preserve_nonecc void @foo(ptr swiftself)
7 ; CHECK: error: <unknown>:0:0: in function bar void (ptr): Swift attributes can't be used with preserve_none
8 define preserve_nonecc void @bar(ptr swifterror) {
12 ; CHECK: error: <unknown>:0:0: in function qux void (ptr): Swift attributes can't be used with preserve_none
13 define void @qux(ptr %addr) {
14 call preserve_nonecc void @foo(ptr swiftself %addr)