aboutsummaryrefslogtreecommitdiff
path: root/test/FixIt/fixit-at.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-04-02 19:05:20 +0000
committerDouglas Gregor <dgregor@apple.com>2009-04-02 19:05:20 +0000
commit26df2f09587ad6978ac8e357ca46b2731d591cc4 (patch)
tree1196ee4c5e3ebc1f03d3b89676484f23f6a0bf9c /test/FixIt/fixit-at.c
parentd09a456e466597fe1667ea5e757bfe53be2cba7d (diff)
Add a new command-line option "-fixit-at=file:line:column" that only
applies fix-its to error messages that occur at that specific location in the program. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68342 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FixIt/fixit-at.c')
-rw-r--r--test/FixIt/fixit-at.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/FixIt/fixit-at.c b/test/FixIt/fixit-at.c
new file mode 100644
index 0000000000..eb33855365
--- /dev/null
+++ b/test/FixIt/fixit-at.c
@@ -0,0 +1,5 @@
+// RUN: clang-cc -fsyntax-only -fixit-at=fixit-at.c:3:1 %s -o - | clang-cc -verify -x c -
+
+_Complex cd;
+
+int i0 = { 17 }; // expected-warning{{braces}}