diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-14 19:25:21 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-14 19:25:21 +0000 |
commit | cf5be70032c44fd8cd3067afd997c4e46eb6306f (patch) | |
tree | 96e0c3e37c4ed750b4321673f431fb193fa07edf | |
parent | fd0c7bae2acdb6b0e484e92872d481fc401e12ac (diff) | |
download | bcm5719-llvm-cf5be70032c44fd8cd3067afd997c4e46eb6306f.tar.gz bcm5719-llvm-cf5be70032c44fd8cd3067afd997c4e46eb6306f.zip |
Improve test to make sure -fixit is really working.
llvm-svn: 88801
-rw-r--r-- | clang/test/FixIt/fixit.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/clang/test/FixIt/fixit.c b/clang/test/FixIt/fixit.c index d14213df712..1f085e4f0ed 100644 --- a/clang/test/FixIt/fixit.c +++ b/clang/test/FixIt/fixit.c @@ -1,4 +1,6 @@ -// RUN: clang-cc -pedantic -fixit %s -o - | clang-cc -pedantic -Werror -x c - +// RUN: clang-cc -pedantic -fixit %s -o - | grep -v 'CHECK' > %t +// RUN: clang-cc -pedantic -Werror -x c - +// RUN: FileCheck -input-file=%t %s /* This is a test of the various code modification hints that are provided as part of warning or extension diagnostics. All of the @@ -12,9 +14,13 @@ struct s { int x, y;; }; +// CHECK: _Complex double cd; _Complex cd; +// CHECK: struct s s0 = { .y = 5 }; struct s s0 = { y: 5 }; + +// CHECK: int array0[5] = { [3] = 3 }; int array0[5] = { [3] 3 }; void f1(x, y) @@ -25,5 +31,7 @@ int i0 = { 17 }; int f2(const char *my_string) { // FIXME: terminal output isn't so good when "my_string" is shorter +// CHECK: return strcmp(my_string , "foo") == 0; return my_string == "foo"; } + |