summaryrefslogtreecommitdiff
path: root/test/Parser/declspec-recovery.c
blob: b256861b9f397b3c577e4281d6cc1b1bc15e9c21 (plain)
1
2
3
4
5
6
7
8
// RUN: %clang_cc1 -triple i386-pc-unknown -fsyntax-only -verify %s

__declspec(naked) void f(void) {} // expected-error{{'__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes}}

struct S {
  __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}}
  int Y;
};