clang/test/Modules/objc-type-param.m
raw| 1 | // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -x objective-c -fmodule-name=objc_type_param -emit-module %S/Inputs/module.modulemap |
| 2 | // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs %s -verify |
| 3 | |
| 4 | @import objc_type_param; |
| 5 | |
| 6 | id make(BCallback callback, id arg) { |
| 7 | return callback(arg); // expected-error {{too few arguments to function call}} |
| 8 | } |