summaryrefslogtreecommitdiffstats
path: root/clang/test/FixIt/fixit.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-04-06 18:45:53 +0000
committerDouglas Gregor <dgregor@apple.com>2009-04-06 18:45:53 +0000
commit7a5bc76b8118c37638579a37738c743debf23e24 (patch)
tree18abf61b0cbb0e860863a05c3a7d27ccc78ecc23 /clang/test/FixIt/fixit.c
parentbc3c77b8818893eac8701101fdc7c89b8bbf0b7f (diff)
downloadbcm5719-llvm-7a5bc76b8118c37638579a37738c743debf23e24.tar.gz
bcm5719-llvm-7a5bc76b8118c37638579a37738c743debf23e24.zip
Fixed the Fix-It hints for comparison against a string literal. Thanks, Chris!
llvm-svn: 68454
Diffstat (limited to 'clang/test/FixIt/fixit.c')
-rw-r--r--clang/test/FixIt/fixit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/FixIt/fixit.c b/clang/test/FixIt/fixit.c
index d1631091b44..1378df4de15 100644
--- a/clang/test/FixIt/fixit.c
+++ b/clang/test/FixIt/fixit.c
@@ -4,6 +4,7 @@
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. */
+#include <string.h> // FIXME: FIX-IT hint should add this for us!
void f0(void) { };
@@ -24,6 +25,5 @@ int i0 = { 17 };
int f2(const char *my_string) {
// FIXME: terminal output isn't so good when "my_string" is shorter
- // FIXME: Needs an #include hint, too!
- // return my_string == "foo";
+ return my_string == "foo";
}
OpenPOWER on IntegriCloud