repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
* tree-loop-distribution.c (struct partition): New field recording
[official-gcc.git]
/
gcc
/
testsuite
/
obj-c++.dg
/
extern-c-1.mm
blob
c5fec6fbe931b3dd83fb56ea01946d9bb2116c6d
1
/* Test extern c support inside @implementation */
2
/* Devang Patel <dpatel@apple.com>. */
3
4
#include <objc/objc.h>
5
6
@interface Extern
7
@end
8
9
@implementation Extern
10
11
extern "C" void NSRegisterElement(id element);
12
13
- init {
14
NSRegisterElement(self);
15
return self;
16
}
17
18
@end