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 4extern "C" __declspec(dllexport) 5@interface Test @end 6 7@implementation Test @end 8 9extern "C" { 10__declspec(dllexport) 11@interface Test1 @end 12 13@implementation Test1 @end 14 15__declspec(dllexport) 16@interface Test2 @end 17 18@implementation Test2 @end 19}; 20 21