diff options
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/Sema/fixit-c90.c | 2 | ||||
-rw-r--r-- | clang/test/Sema/fixit-errors.c | 2 | ||||
-rw-r--r-- | clang/test/Sema/fixit.c | 5 | ||||
-rw-r--r-- | clang/test/SemaCXX/fixit.cpp | 2 |
4 files changed, 6 insertions, 5 deletions
diff --git a/clang/test/Sema/fixit-c90.c b/clang/test/Sema/fixit-c90.c index 125e5f8f3a8..c2c7602cd30 100644 --- a/clang/test/Sema/fixit-c90.c +++ b/clang/test/Sema/fixit-c90.c @@ -1,4 +1,4 @@ -/* RUN: clang -fsyntax-only -std=c90 -pedantic %s +/* RUN: clang -fsyntax-only -std=c90 -pedantic -fixit %s -o - | clang-cc -pedantic -x c -std=c90 -Werror - */ /* This is a test of the various code modification hints that are provided as part of warning or extension diagnostics. Eventually, diff --git a/clang/test/Sema/fixit-errors.c b/clang/test/Sema/fixit-errors.c index 58c60ec4621..3d144d3d873 100644 --- a/clang/test/Sema/fixit-errors.c +++ b/clang/test/Sema/fixit-errors.c @@ -1,4 +1,4 @@ -// RUN: clang-cc -fsyntax-only -pedantic -verify %s +// 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. Eventually, diff --git a/clang/test/Sema/fixit.c b/clang/test/Sema/fixit.c index 4bdb03df6b0..ca034e94046 100644 --- a/clang/test/Sema/fixit.c +++ b/clang/test/Sema/fixit.c @@ -1,4 +1,4 @@ -// RUN: clang -fsyntax-only -pedantic %s +// RUN: clang -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. Eventually, @@ -25,5 +25,6 @@ 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"; + // FIXME: Needs an #include hint, too! + // return my_string == "foo"; } diff --git a/clang/test/SemaCXX/fixit.cpp b/clang/test/SemaCXX/fixit.cpp index a8859ab8cdd..9741d4af3c2 100644 --- a/clang/test/SemaCXX/fixit.cpp +++ b/clang/test/SemaCXX/fixit.cpp @@ -1,4 +1,4 @@ -// RUN: clang-cc -fsyntax-only -pedantic -verify %s +// RUN: clang-cc -fsyntax-only -pedantic -fixit %s -o - | clang-cc -fsyntax-only -pedantic -Werror -x c++ - /* This is a test of the various code modification hints that are provided as part of warning or extension diagnostics. Eventually, |