llvm-project/clang/test/Parser/declspec-supported.c

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
303 B
C
Raw Normal View History

// RUN: %clang_cc1 -triple i386-pc-unknown -fsyntax-only -fms-extensions -verify %s
// RUN: %clang_cc1 -triple i386-pc-unknown -fsyntax-only -fdeclspec -verify %s
// expected-no-diagnostics
__declspec(naked) void f(void) {}
struct S {
__declspec(property(get=Getter, put=Setter)) int X;
int Y;
};