fixit-errors.c revision fe057ac36b9a76cdfa37dfa003f986461fb5fb98
1558cb56caf8906e0adbe643e3febbef0b7af1b9fDouglas Gregor// RUN: clang-cc -fsyntax-only -pedantic -fixit %s -o - | clang-cc -pedantic -Werror -x c -
2a3a835149ed4b183e3b009a1f94a6123779d696bDouglas Gregor
3a3a835149ed4b183e3b009a1f94a6123779d696bDouglas Gregor/* This is a test of the various code modification hints that are
4fe057ac36b9a76cdfa37dfa003f986461fb5fb98Douglas Gregor   provided as part of warning or extension diagnostics. All of the
5fe057ac36b9a76cdfa37dfa003f986461fb5fb98Douglas Gregor   warnings will be fixed by -fixit, and the resulting file should
6fe057ac36b9a76cdfa37dfa003f986461fb5fb98Douglas Gregor   compile cleanly with -Werror -pedantic. */
7fe057ac36b9a76cdfa37dfa003f986461fb5fb98Douglas Gregor
8a3a835149ed4b183e3b009a1f94a6123779d696bDouglas Gregorstruct s; // expected-note{{previous use is here}}
9a3a835149ed4b183e3b009a1f94a6123779d696bDouglas Gregor
10a3a835149ed4b183e3b009a1f94a6123779d696bDouglas Gregorunion s *s1; // expected-error{{use of 's' with tag type that does not match previous declaration}}
11