blob: 7bf9a58430f112c8d9dc7207854a2bb9267798a6 [file] [log] [blame]
Shih-wei Liaof8fd82b2010-02-10 11:10:31 -08001// RUN: %clang_cc1 -pedantic -fixit %s -o - | %clang_cc1 -pedantic -Werror -x c -
2
3/* This is a test of the various code modification hints that are
4 provided as part of warning or extension diagnostics. All of the
5 warnings will be fixed by -fixit, and the resulting file should
6 compile cleanly with -Werror -pedantic. */
7
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}}
11
12struct Point {
13 float x, y, z;
14};
15
16struct Point *get_origin();
17
18void test_point() {
19 (void)get_origin->x;
20}