brintos

brintos / llvm-project-archived public Read only

0
0
Text · 675 B · ef09fa2 Raw
18 lines · cpp
1/* FIXME: This is a file containing various typos for which we can2   suggest corrections but are unable to actually recover from3   them. Ideally, we would eliminate all such cases and move these4   tests elsewhere. */5 6// RUN: %clang_cc1 -fsyntax-only -verify %s7 8float f(int y) {9  return static_cst<float>(y); // expected-error{{use of undeclared identifier 'static_cst'; did you mean 'static_cast'?}}10}11 12struct Foobar {}; // expected-note {{here}}13template<typename T> struct Goobar {}; // expected-note {{here}}14void use_foobar() {15  auto x = zoobar(); // expected-error {{did you mean 'Foobar'}}16  auto y = zoobar<int>(); // expected-error {{did you mean 'Goobar'}}17}18