1// RUN: %clang_cc1 -fsyntax-only -verify %s 2 3typedef int Bad1 __attribute__((swift_newtype(invalid))); 4// expected-warning@-1 {{'swift_newtype' attribute argument not supported: 'invalid'}} 5typedef int Bad2 __attribute__((swift_newtype())); 6// expected-error@-1 {{argument required after attribute}} 7typedef int Bad3 __attribute__((swift_newtype(invalid, ignored))); 8// expected-error@-1 {{expected ')'}} 9// expected-note@-2 {{to match this '('}} 10// expected-warning@-3 {{'swift_newtype' attribute argument not supported: 'invalid'}} 11 12struct __attribute__((__swift_newtype__(struct))) Bad4 {}; 13// expected-error@-1 {{'__swift_newtype__' attribute only applies to typedefs}} 14