blob: 3d144d3d873d8381b64ac74aed208cd296e0f847 [file] [log] [blame]
Douglas Gregor558cb562009-04-02 01:08:08 +00001// RUN: clang-cc -fsyntax-only -pedantic -fixit %s -o - | clang-cc -pedantic -Werror -x c -
Douglas Gregora3a83512009-04-01 23:51:29 +00002
3/* This is a test of the various code modification hints that are
4 provided as part of warning or extension diagnostics. Eventually,
5 we would like to actually try to perform the suggested
6 modifications and compile the result to test that no warnings
7 remain. */
8struct s; // expected-note{{previous use is here}}
9
10union s *s1; // expected-error{{use of 's' with tag type that does not match previous declaration}}