aboutsummaryrefslogtreecommitdiff
path: root/test/FixIt/fixit-errors.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-04-02 17:19:13 +0000
committerDouglas Gregor <dgregor@apple.com>2009-04-02 17:19:13 +0000
commitdd6f4abe816a529cfc8c0487f9a13f3b88f0aae8 (patch)
treedff4937977aa80eb40a644f2f018c9f23d0d1380 /test/FixIt/fixit-errors.c
parentde4bf6a63219c5b9d3bce1fed3dfe075568098a0 (diff)
Move the fix-it tests into their own subdirectory
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68325 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FixIt/fixit-errors.c')
-rw-r--r--test/FixIt/fixit-errors.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/FixIt/fixit-errors.c b/test/FixIt/fixit-errors.c
new file mode 100644
index 0000000000..9c5258dbcb
--- /dev/null
+++ b/test/FixIt/fixit-errors.c
@@ -0,0 +1,10 @@
+// RUN: clang-cc -fsyntax-only -pedantic -fixit %s -o - | clang-cc -pedantic -Werror -x c -
+
+/* This is a test of the various code modification hints that are
+ provided as part of warning or extension diagnostics. All of the
+ warnings will be fixed by -fixit, and the resulting file should
+ compile cleanly with -Werror -pedantic. */
+
+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}}