// RUN: %clang_cc1 -triple i386-pc-win32 %s -fsyntax-only -verify -fms-extensions -Wno-microsoft -std=c++11
;
; // expected-warning{{'layout_version' attribute only applies to classes}}
int __declspec) I; // expected-warning{{'layout_version' attribute only applies to classes}}
typedef struct T __declspec) U; // expected-warning{{'layout_version' attribute only applies to classes}}
auto z = __declspec) ; // expected-warning{{'layout_version' attribute only applies to classes}}
; // expected-error{{'layout_version' attribute parameter 18 is out of bounds}}
; // expected-error{{'layout_version' attribute parameter 20 is out of bounds}}
; // expected-error{{attribute takes one argument}}