Douglas Gregor | aaf8716 | 2010-04-14 20:04:41 +0000 | [diff] [blame] | 1 | /* FIXME: This is a file containing various typos for which we can |
| 2 | suggest corrections but are unable to actually recover from |
| 3 | them. Ideally, we would eliminate all such cases and move these |
| 4 | tests elsewhere. */ |
| 5 | |
| 6 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
| 7 | |
| 8 | float f(int y) { |
Douglas Gregor | 200b292 | 2010-09-17 22:25:06 +0000 | [diff] [blame^] | 9 | return static_cst<float>(y); // expected-error{{use of undeclared identifier 'static_cst'; did you mean 'static_cast'?}} \ |
| 10 | // expected-error{{for function-style cast or type construction}} |
Douglas Gregor | aaf8716 | 2010-04-14 20:04:41 +0000 | [diff] [blame] | 11 | } |
| 12 | |