mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-12-06 19:31:44 +00:00
18 lines
217 B
Objective-C
18 lines
217 B
Objective-C
// RUN: clang -fsyntax-only -verify %s
|
|
// rdar://5707001
|
|
|
|
@interface NSNumber;
|
|
- () METH;
|
|
@end
|
|
|
|
void test1() {
|
|
id objects[] = {[NSNumber METH]};
|
|
}
|
|
|
|
void test2(NSNumber x) {
|
|
id objects[] = {[x METH]};
|
|
return 0;
|
|
}
|
|
|
|
|