Aaron Ballman | 52d0aaa | 2017-02-14 22:47:20 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple i386-pc-unknown -fsyntax-only -verify %s |
| 2 | |
| 3 | __declspec(naked) void f(void) {} // expected-error{{'__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes}} |
| 4 | |
| 5 | struct S { |
| 6 | __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 | int Y; |
| 8 | }; |