brintos

brintos / llvm-project-archived public Read only

0
0
Text · 506 B · 30ffbfc Raw
9 lines · plain
1// RUN: %clang_cc1 -triple amdgcn-- -verify -S -o - %s2 3void 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}9