mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Check that Foundation.h can be correctly imported into an ObjC++ program (i.e. we haven't used things like template or class as identifier names anywhere).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32636 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d5be261c5f
commit
4529ebcb0d
1 changed files with 12 additions and 0 deletions
12
Tests/base/headers/ObjCXX.mm
Normal file
12
Tests/base/headers/ObjCXX.mm
Normal file
|
@ -0,0 +1,12 @@
|
|||
#include <Foundation/Foundation.h>
|
||||
#include "ObjectTesting.h"
|
||||
|
||||
@class NSAutoreleasePool;
|
||||
int main()
|
||||
{
|
||||
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
||||
|
||||
PASS (1, "include of Foundation/Foundation.h works in an Objective-C++ program");
|
||||
[arp release];
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue