summaryrefslogtreecommitdiffstats
path: root/Tests/Objective-C++/objcxx-file-extension-test/main.mm
blob: d4aa1bba388e05e02c2dfdebc96f9503340d32e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef __OBJC__
#  error "Compiler is not an Objective-C compiler."
#endif

#import <Foundation/Foundation.h>
#include <iostream>

int main()
{
  NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
  std::cout << "Hello World" << std::endl;
  [pool release];
  return 0;
}