| 1 |
// RUN: %clang_cc1 -triple amdgcn-- -verify -S -o - %s |
| 2 |
|
| 3 |
void test_builtin_amdgcn_cvt_off_f32_i4(int n) { |
| 4 |
struct A{ unsigned x; } a; |
| 5 |
__builtin_amdgcn_cvt_off_f32_i4(n, n); // expected-error {{too many arguments to function call, expected 1, have 2}} |
| 6 |
__builtin_amdgcn_cvt_off_f32_i4(); // expected-error {{too few arguments to function call, expected 1, have 0}} |
| 7 |
__builtin_amdgcn_cvt_off_f32_i4(a); // expected-error {{passing '__private struct A' to parameter of incompatible type 'int'}} |
| 8 |
} |