// RUN: %clang_cc1 -fms-compatibility -triple x86_64-windows-msvc -std=c++14 -fms-extensions -fms-compatibility-version=19.00 -verify %s
__declspec int err_on_data; // expected-warning {{'allocator' attribute only applies to functions}}
__declspec ; // expected-warning {{place it after "struct" to apply attribute}}
; // expected-warning {{'allocator' attribute only applies to functions}}
__declspec void ; // expected-warning {{not a pointer or reference type}}
__declspec int ; // expected-warning {{not a pointer or reference type}}
__declspec void *;
__declspec void *;
void * __declspec ; // expected-error {{expected unqualified-id}}
;
__declspec Foo *;