Files
swift-mirror/test/attr/attr_cdecl_async.swift
Evan Wilde fad745335b Merge invalid async decl + attribute
This patch merges the two diagnostics complaining about asynchronous
function declarations with incompatible attributes. The two are cdecl
and ibaction at the moment.
2022-06-03 13:54:51 -07:00

8 lines
235 B
Swift

// RUN: %target-typecheck-verify-swift -enable-objc-interop -disable-availability-checking
// REQUIRES: concurrency
@_cdecl("async") // expected-error{{@_cdecl global function cannot be asynchronous}}
func asynchronous() async { }