From ad01416a1115ef58a30278d14c49b14bd5f69d95 Mon Sep 17 00:00:00 2001 From: Yves Starreveld Date: Tue, 26 Nov 2002 19:01:51 -0500 Subject: Test for ObjC++ on OSX machines only --- Tests/ObjC++/CMakeLists.txt | 5 +++++ Tests/ObjC++/objc++.mm | 22 ++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 Tests/ObjC++/CMakeLists.txt create mode 100644 Tests/ObjC++/objc++.mm diff --git a/Tests/ObjC++/CMakeLists.txt b/Tests/ObjC++/CMakeLists.txt new file mode 100644 index 0000000..d79fc00 --- /dev/null +++ b/Tests/ObjC++/CMakeLists.txt @@ -0,0 +1,5 @@ +# a simple objc++ test case that uses Cocoa framework +PROJECT (objc++) + +ADD_EXECUTABLE (objc++ objc++.mm) + diff --git a/Tests/ObjC++/objc++.mm b/Tests/ObjC++/objc++.mm new file mode 100644 index 0000000..b7ec4b5 --- /dev/null +++ b/Tests/ObjC++/objc++.mm @@ -0,0 +1,22 @@ +#import +#import + +int main() +{ + NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; + + NSMutableSet *mySet = [NSMutableSet set]; + cout<<"Adding values to the set."<