xref: /llvm-project/clang/test/Parser/declspec-recovery.c (revision 52d0aaac139ae8804f31970fa96f5debbe94deee)
1*52d0aaacSAaron Ballman // RUN: %clang_cc1 -triple i386-pc-unknown -fsyntax-only -verify %s
2*52d0aaacSAaron Ballman 
f(void)3*52d0aaacSAaron Ballman __declspec(naked) void f(void) {} // expected-error{{'__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes}}
4*52d0aaacSAaron Ballman 
5*52d0aaacSAaron Ballman struct S {
6*52d0aaacSAaron Ballman   __declspec(property(get=Getter, put=Setter)) int X; // expected-error{{'__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes}}
7*52d0aaacSAaron Ballman   int Y;
8*52d0aaacSAaron Ballman };
9