xref: /aosp_15_r20/external/clang/test/FixIt/fixit-unrecoverable.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li /* FIXME: This is a file containing various typos for which we can
2*67e74705SXin Li    suggest corrections but are unable to actually recover from
3*67e74705SXin Li    them. Ideally, we would eliminate all such cases and move these
4*67e74705SXin Li    tests elsewhere. */
5*67e74705SXin Li 
6*67e74705SXin Li // RUN: %clang_cc1 -fsyntax-only -verify %s
7*67e74705SXin Li 
f(int y)8*67e74705SXin Li float f(int y) {
9*67e74705SXin Li   return static_cst<float>(y); // expected-error{{use of undeclared identifier 'static_cst'; did you mean 'static_cast'?}}
10*67e74705SXin Li }
11