[RISCV] Simplify usage of SplatPat_simm5_plus1. NFC (#125340)
[llvm-project.git] / clang / test / SemaCXX / typo-correction-builtin-func.cpp
blob8d369034d1be3350e67629396f2a63527c4967b3
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 // Test that clang does not emit 'declared here' note for builtin functions that don't have a declaration in source.
5 void t0() {
6 constexpr float A = __builtin_isinfinity(); // expected-error {{use of undeclared identifier '__builtin_isinfinity'; did you mean '__builtin_isfinite'?}}
7 // expected-error@-1 {{too few arguments to function call, expected 1, have 0}}