diff options
Diffstat (limited to 'test/Parser/objc-boxing.m')
-rw-r--r-- | test/Parser/objc-boxing.m | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Parser/objc-boxing.m b/test/Parser/objc-boxing.m index a16a137b8f..a6bb0243cf 100644 --- a/test/Parser/objc-boxing.m +++ b/test/Parser/objc-boxing.m @@ -24,3 +24,11 @@ id missing_parentheses() { return @(5; // expected-error {{expected ')'}} \ // expected-note {{to match this '('}} } + +// rdar://10679157 +void bar(id p); +void foo(id p) { + bar(@{p, p}); // expected-error {{expected ':'}} + bar(0); + bar(0); +} |