Files
swift-mirror/test/attr/has_attribute.swift
2022-07-25 21:31:16 -04:00

26 lines
510 B
Swift

// RUN: %target-typecheck-verify-swift
#if !hasAttribute(dynamicCallable)
BOOM
#endif
#if hasAttribute(fortran)
BOOM
#endif
#if hasAttribute(cobol)
this is unparsed junk // expected-error{{consecutive statements on a line must be separated by}}
#endif
#if hasAttribute(optional)
ModifiersAreNotAttributes
#endif
#if hasAttribute(__raw_doc_comment)
UserInaccessibleAreNotAttributes
#endif
#if hasAttribute(17)
// expected-error@-1{{unexpected platform condition argument: expected attribute name}}
#endif