diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/CXX/dcl.decl/dcl.init/dcl.init.aggr/p4.cpp | 2 | ||||
-rw-r--r-- | test/Frontend/Weverything.c | 3 | ||||
-rw-r--r-- | test/Frontend/warning-mapping-2.c | 3 | ||||
-rw-r--r-- | test/Frontend/warning-mapping-4.c | 6 |
4 files changed, 7 insertions, 7 deletions
diff --git a/test/CXX/dcl.decl/dcl.init/dcl.init.aggr/p4.cpp b/test/CXX/dcl.decl/dcl.init/dcl.init.aggr/p4.cpp index c38bd292ef..1041571153 100644 --- a/test/CXX/dcl.decl/dcl.init/dcl.init.aggr/p4.cpp +++ b/test/CXX/dcl.decl/dcl.init/dcl.init.aggr/p4.cpp @@ -15,4 +15,4 @@ void tf() { } // Allowed by GNU extension -int a4[] = {}; // expected-warning {{zero size arrays}} +int a4[] = {}; // expected-error {{zero size arrays}} diff --git a/test/Frontend/Weverything.c b/test/Frontend/Weverything.c index 7c87a2cca1..32f314720b 100644 --- a/test/Frontend/Weverything.c +++ b/test/Frontend/Weverything.c @@ -2,9 +2,6 @@ // become errors. // // RUN: %clang_cc1 -verify -Weverything -pedantic-errors %s -// -// FIXME: This is currently broken. -// XFAIL: * int f0(int, unsigned); int f0(int x, unsigned y) { diff --git a/test/Frontend/warning-mapping-2.c b/test/Frontend/warning-mapping-2.c index 5a347ebb09..39ba4997a4 100644 --- a/test/Frontend/warning-mapping-2.c +++ b/test/Frontend/warning-mapping-2.c @@ -1,8 +1,5 @@ // Check that -w has lower priority than -pedantic-errors. // RUN: %clang_cc1 -verify -pedantic-errors -w %s -// -// FIXME: We currently get this wrong. -// XFAIL: * void f0() { f1(); } // expected-error {{implicit declaration of function}} diff --git a/test/Frontend/warning-mapping-4.c b/test/Frontend/warning-mapping-4.c new file mode 100644 index 0000000000..d8d2769fc5 --- /dev/null +++ b/test/Frontend/warning-mapping-4.c @@ -0,0 +1,6 @@ +// RUN: %clang_cc1 -verify -Wno-error=sign-compare %s +// RUN: %clang_cc1 -verify -Wsign-compare -w -Wno-error=sign-compare %s + +int f0(int x, unsigned y) { + return x < y; +} |