// RUN: %clang_cc1 -triple i686-windows -fdeclspec -fsyntax-only -verify %s
__declspec typedef int typedef1;
// expected-warning@-1{{'dllexport' attribute only applies to functions, variables, classes, and Objective-C interfaces}}
typedef __declspec int typedef2;
// expected-warning@-1{{'dllexport' attribute only applies to}}
typedef int __declspec typedef3;
// expected-warning@-1{{'dllexport' attribute only applies to}}
typedef __declspec void ;
// expected-warning@-1{{'dllexport' attribute only applies to}}
;
// expected-warning@-1{{'dllexport' attribute only applies to}}
;
// expected-warning@-1{{'dllexport' attribute only applies to}}
__declspec
__declspec