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