xref: /llvm-project/clang/test/Modules/objc-type-param.m (revision a171d248ca34b8b6f8de11d42a83ad981285963a)
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
6id make(BCallback callback, id arg) {
7  return callback(arg); // expected-error {{too few arguments to function call}}
8}
9