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