summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/fixit-errors.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/fixit-errors.c')
-rw-r--r--clang/test/Sema/fixit-errors.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Sema/fixit-errors.c b/clang/test/Sema/fixit-errors.c
new file mode 100644
index 00000000000..58c60ec4621
--- /dev/null
+++ b/clang/test/Sema/fixit-errors.c
@@ -0,0 +1,10 @@
+// RUN: clang-cc -fsyntax-only -pedantic -verify %s
+
+/* This is a test of the various code modification hints that are
+ provided as part of warning or extension diagnostics. Eventually,
+ we would like to actually try to perform the suggested
+ modifications and compile the result to test that no warnings
+ remain. */
+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}}
OpenPOWER on IntegriCloud