// RUN: %clang_cc1 -triple %ms_abi_triple -fms-extensions -verify -fsyntax-only %s
// RUN: %clang_cc1 -triple %ms_abi_triple -fms-extensions -verify -std=c++11 -fsyntax-only -x c++ %s
// Function definition.
__declspec) void
// Can not be used on variable, parameter, or function pointer declarations.
int __declspec) i; // expected-warning {{'guard' attribute only applies to functions}}
void i) // expected-warning {{'guard' attribute only applies to functions}}
__declspec) typedef void ; // expected-warning {{'guard' attribute only applies to functions}}
// 'guard' Attribute requries an argument.
__declspec void
// 'guard' Attribute requries an identifier as argument.
__declspec) void
// 'guard' Attribute only takes a single argument.
__declspec) void
// 'guard' Attribute argument must be a supported identifier.
__declspec) void