diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/Sema/compare.c | 2 | ||||
-rw-r--r-- | test/Sema/conditional-expr.c | 2 | ||||
-rw-r--r-- | test/SemaCXX/compare.cpp | 2 | ||||
-rw-r--r-- | test/SemaCXX/conditional-expr.cpp | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/test/Sema/compare.c b/test/Sema/compare.c index 9cbbfba935..45a100be1e 100644 --- a/test/Sema/compare.c +++ b/test/Sema/compare.c @@ -1,4 +1,4 @@ -// RUN: clang-cc -fsyntax-only -pedantic -verify %s +// RUN: clang-cc -fsyntax-only -pedantic -verify -Wsign-compare %s int test(char *C) { // nothing here should warn. return C != ((void*)0); diff --git a/test/Sema/conditional-expr.c b/test/Sema/conditional-expr.c index 3bfeae5d4c..8cac32c82f 100644 --- a/test/Sema/conditional-expr.c +++ b/test/Sema/conditional-expr.c @@ -1,4 +1,4 @@ -// RUN: clang-cc -fsyntax-only -verify -pedantic %s +// RUN: clang-cc -fsyntax-only -verify -pedantic -Wsign-compare %s void foo() { *(0 ? (double *)0 : (void *)0) = 0; // FIXME: GCC doesn't consider the the following two statements to be errors. diff --git a/test/SemaCXX/compare.cpp b/test/SemaCXX/compare.cpp index 806b078e8d..2a2963493b 100644 --- a/test/SemaCXX/compare.cpp +++ b/test/SemaCXX/compare.cpp @@ -1,4 +1,4 @@ -// RUN: clang-cc -fsyntax-only -pedantic -verify %s +// RUN: clang-cc -fsyntax-only -pedantic -verify -Wsign-compare %s int test0(long a, unsigned long b) { enum Enum {B}; diff --git a/test/SemaCXX/conditional-expr.cpp b/test/SemaCXX/conditional-expr.cpp index da2dd67d06..f76472bf2f 100644 --- a/test/SemaCXX/conditional-expr.cpp +++ b/test/SemaCXX/conditional-expr.cpp @@ -1,4 +1,4 @@ -// RUN: clang-cc -fsyntax-only -verify -faccess-control -std=c++0x %s +// RUN: clang-cc -fsyntax-only -verify -faccess-control -std=c++0x -Wsign-compare %s // C++ rules for ?: are a lot stricter than C rules, and have to take into // account more conversion options. |