summaryrefslogtreecommitdiff
path: root/gcc/testsuite/obj-c++.dg/extern-c-1.mm
blob: c5fec6fbe931b3dd83fb56ea01946d9bb2116c6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Test extern c support inside @implementation */
/* Devang Patel  <dpatel@apple.com>.  */

#include <objc/objc.h>

@interface Extern 
@end

@implementation Extern

extern "C" void NSRegisterElement(id element);

- init {
  NSRegisterElement(self);
  return self;
}

@end