1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -x objective-c++ -fms-extensions -rewrite-objc %s -o %t-rw.cpp 2*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -fsyntax-only -Wno-attributes -D"__declspec(X)=" %t-rw.cpp 3*f4a2713aSLionel Sambuc// rdar://11169733 4*f4a2713aSLionel Sambuc 5*f4a2713aSLionel Sambucextern "C" __declspec(dllexport) 6*f4a2713aSLionel Sambuc@interface Test @end 7*f4a2713aSLionel Sambuc 8*f4a2713aSLionel Sambuc@implementation Test @end 9*f4a2713aSLionel Sambuc 10*f4a2713aSLionel Sambucextern "C" { 11*f4a2713aSLionel Sambuc__declspec(dllexport) 12*f4a2713aSLionel Sambuc@interface Test1 @end 13*f4a2713aSLionel Sambuc 14*f4a2713aSLionel Sambuc@implementation Test1 @end 15*f4a2713aSLionel Sambuc 16*f4a2713aSLionel Sambuc__declspec(dllexport) 17*f4a2713aSLionel Sambuc@interface Test2 @end 18*f4a2713aSLionel Sambuc 19*f4a2713aSLionel Sambuc@implementation Test2 @end 20*f4a2713aSLionel Sambuc}; 21*f4a2713aSLionel Sambuc 22