diff options
Diffstat (limited to 'test/FixIt/fixit-errors.c')
-rw-r--r-- | test/FixIt/fixit-errors.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/FixIt/fixit-errors.c b/test/FixIt/fixit-errors.c index 9c5258dbcb..996e940f2c 100644 --- a/test/FixIt/fixit-errors.c +++ b/test/FixIt/fixit-errors.c @@ -8,3 +8,13 @@ struct s; // expected-note{{previous use is here}} union s *s1; // expected-error{{use of 's' with tag type that does not match previous declaration}} + +struct Point { + float x, y, z; +}; + +struct Point *get_origin(); + +void test_point() { + (void)get_origin->x; +} |