================
@@ -10,7 +10,12 @@ bool2 test_too_many_arg(float2 p0) {
// expected-error@-1 {{too many arguments to function call, expected 1, have
2}}
}
-bool builtin_bool_to_float_type_promotion(bool p1) {
+bool builtin_sign_bool(bool p1) {
return __builtin_hlsl_elementwise_sign(p1);
- // expected-error@-1 {passing 'bool' to parameter of incompatible type
'float'}}
+ // expected-error@-1 {{1st argument must be a vector, integer or
floating-point type (was 'bool')}}
----------------
djb wrote:
This check wasn't working before because of a missing `{`. The expected error
was also out of date.
https://github.com/llvm/llvm-project/pull/235542
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits