Add some more code modification hints
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68261 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/fixit-errors.c b/test/Sema/fixit-errors.c
new file mode 100644
index 0000000..58c60ec
--- /dev/null
+++ b/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}}
diff --git a/test/Sema/fixit.c b/test/Sema/fixit.c
index e2443cc..4bdb03d 100644
--- a/test/Sema/fixit.c
+++ b/test/Sema/fixit.c
@@ -16,3 +16,14 @@
struct s s0 = { y: 5 };
int array0[5] = { [3] 3 };
+
+void f1(x, y)
+{
+}
+
+int i0 = { 17 };
+
+int f2(const char *my_string) {
+ // FIXME: terminal output isn't so good when "my_string" is shorter
+ return my_string == "foo";
+}