diff options
author | Andy Gibbs <andyg1001@hotmail.co.uk> | 2012-10-19 12:44:48 +0000 |
---|---|---|
committer | Andy Gibbs <andyg1001@hotmail.co.uk> | 2012-10-19 12:44:48 +0000 |
commit | c6e68daac0fa6e77a89f3ca72f266a528503dd1c (patch) | |
tree | c8d92499ba7d35b64177cfc8e4e3ccad1f699145 /clang/test/Parser | |
parent | ac51de6ec2f01fce1d9dadf59a86ffe825c42bc7 (diff) | |
download | bcm5719-llvm-c6e68daac0fa6e77a89f3ca72f266a528503dd1c.tar.gz bcm5719-llvm-c6e68daac0fa6e77a89f3ca72f266a528503dd1c.zip |
Prior to adding the new "expected-no-diagnostics" directive to VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive.
llvm-svn: 166280
Diffstat (limited to 'clang/test/Parser')
21 files changed, 21 insertions, 0 deletions
diff --git a/clang/test/Parser/block-block-storageclass.c b/clang/test/Parser/block-block-storageclass.c index 97ba1134921..53cd9972522 100644 --- a/clang/test/Parser/block-block-storageclass.c +++ b/clang/test/Parser/block-block-storageclass.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -fblocks -verify %s +// expected-no-diagnostics int printf(const char *, ...); void _Block_byref_release(void*src){} diff --git a/clang/test/Parser/block-pointer-decl.c b/clang/test/Parser/block-pointer-decl.c index a8cc258ca37..d88daf3a870 100644 --- a/clang/test/Parser/block-pointer-decl.c +++ b/clang/test/Parser/block-pointer-decl.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -fblocks %s +// expected-no-diagnostics int printf(char const *, ...); diff --git a/clang/test/Parser/check-objc2-syntax-1.m b/clang/test/Parser/check-objc2-syntax-1.m index 3cdf2b05cf8..9aff9637740 100644 --- a/clang/test/Parser/check-objc2-syntax-1.m +++ b/clang/test/Parser/check-objc2-syntax-1.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @interface Subclass + (int)magicNumber; diff --git a/clang/test/Parser/compound_literal.c b/clang/test/Parser/compound_literal.c index 4f3609dc29f..9a0e4a64a65 100644 --- a/clang/test/Parser/compound_literal.c +++ b/clang/test/Parser/compound_literal.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics int main() { char *s; s = (char []){"whatever"}; diff --git a/clang/test/Parser/cxx-attributes.cpp b/clang/test/Parser/cxx-attributes.cpp index 8603b309001..5ea0ce22759 100644 --- a/clang/test/Parser/cxx-attributes.cpp +++ b/clang/test/Parser/cxx-attributes.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics class c { virtual void f1(const char* a, ...) diff --git a/clang/test/Parser/cxx-extern-c-array.cpp b/clang/test/Parser/cxx-extern-c-array.cpp index 14912fd1067..11092ad0c1c 100644 --- a/clang/test/Parser/cxx-extern-c-array.cpp +++ b/clang/test/Parser/cxx-extern-c-array.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics extern "C" int myarray[]; int myarray[12] = {0}; diff --git a/clang/test/Parser/cxx0x-override-control-keywords.cpp b/clang/test/Parser/cxx0x-override-control-keywords.cpp index 444862a5c85..be79db36e0d 100644 --- a/clang/test/Parser/cxx0x-override-control-keywords.cpp +++ b/clang/test/Parser/cxx0x-override-control-keywords.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s +// expected-no-diagnostics struct Base { virtual void override(); diff --git a/clang/test/Parser/cxx11-brace-initializers.cpp b/clang/test/Parser/cxx11-brace-initializers.cpp index a1ef0944dd1..a2102056bc1 100644 --- a/clang/test/Parser/cxx11-brace-initializers.cpp +++ b/clang/test/Parser/cxx11-brace-initializers.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11 +// expected-no-diagnostics struct S { S(int, int) {} diff --git a/clang/test/Parser/encode.m b/clang/test/Parser/encode.m index 7b8022e78dc..056cee1ac06 100644 --- a/clang/test/Parser/encode.m +++ b/clang/test/Parser/encode.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics int main(void) { const char ch = @encode(char *)[0]; diff --git a/clang/test/Parser/enhanced-proto-1.m b/clang/test/Parser/enhanced-proto-1.m index fa6e4138f1c..bad5c7c258d 100644 --- a/clang/test/Parser/enhanced-proto-1.m +++ b/clang/test/Parser/enhanced-proto-1.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @protocol MyProto1 @optional diff --git a/clang/test/Parser/if-scope-c90.c b/clang/test/Parser/if-scope-c90.c index c368fabb80e..61119eacc9e 100644 --- a/clang/test/Parser/if-scope-c90.c +++ b/clang/test/Parser/if-scope-c90.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -std=c90 %s +// expected-no-diagnostics int f (int z) { diff --git a/clang/test/Parser/knr_parameter_attributes.c b/clang/test/Parser/knr_parameter_attributes.c index fb975cbf332..b11a75ed207 100644 --- a/clang/test/Parser/knr_parameter_attributes.c +++ b/clang/test/Parser/knr_parameter_attributes.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -W -Wall -Werror -verify %s +// expected-no-diagnostics int f(int i __attribute__((__unused__))) { diff --git a/clang/test/Parser/namelookup-bug-1.c b/clang/test/Parser/namelookup-bug-1.c index 8667a71657c..31d17a9d7de 100644 --- a/clang/test/Parser/namelookup-bug-1.c +++ b/clang/test/Parser/namelookup-bug-1.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -verify %s +// expected-no-diagnostics typedef int Object; diff --git a/clang/test/Parser/namelookup-bug-2.c b/clang/test/Parser/namelookup-bug-2.c index 84850ffafb1..4598da05cd0 100644 --- a/clang/test/Parser/namelookup-bug-2.c +++ b/clang/test/Parser/namelookup-bug-2.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -verify %s +// expected-no-diagnostics typedef int Object; diff --git a/clang/test/Parser/opencl-kernel.cl b/clang/test/Parser/opencl-kernel.cl index 3abb62b6169..01c7ed6b5ab 100644 --- a/clang/test/Parser/opencl-kernel.cl +++ b/clang/test/Parser/opencl-kernel.cl @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only +// expected-no-diagnostics __kernel void test() { diff --git a/clang/test/Parser/parmvardecl_conversion.c b/clang/test/Parser/parmvardecl_conversion.c index 9fa8a6880a2..f6afd120587 100644 --- a/clang/test/Parser/parmvardecl_conversion.c +++ b/clang/test/Parser/parmvardecl_conversion.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics void f (int p[]) { p++; } diff --git a/clang/test/Parser/pragma-options.cpp b/clang/test/Parser/pragma-options.cpp index 152aacb8fd1..84cd38dfb3c 100644 --- a/clang/test/Parser/pragma-options.cpp +++ b/clang/test/Parser/pragma-options.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple i386-apple-darwin9 -fsyntax-only -verify %s +// expected-no-diagnostics class C { #pragma options align=natural diff --git a/clang/test/Parser/recursion-limits.cpp b/clang/test/Parser/recursion-limits.cpp index ea25dea0dac..bb7354f550c 100644 --- a/clang/test/Parser/recursion-limits.cpp +++ b/clang/test/Parser/recursion-limits.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only %s -verify +// expected-no-diagnostics class outer { class inner1 { inner1(); }; class inner2 { inner2(); }; diff --git a/clang/test/Parser/selector-1.m b/clang/test/Parser/selector-1.m index 5ba2da9931c..3e2a86d9e9b 100644 --- a/clang/test/Parser/selector-1.m +++ b/clang/test/Parser/selector-1.m @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s // RUN: %clang_cc1 -x objective-c++ -fsyntax-only -verify %s +// expected-no-diagnostics // rdar://8366474 int main() { diff --git a/clang/test/Parser/top-level-semi-cxx0x.cpp b/clang/test/Parser/top-level-semi-cxx0x.cpp index be342a22570..472686e8b34 100644 --- a/clang/test/Parser/top-level-semi-cxx0x.cpp +++ b/clang/test/Parser/top-level-semi-cxx0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -pedantic -std=c++11 -verify %s +// expected-no-diagnostics void foo(); diff --git a/clang/test/Parser/types.c b/clang/test/Parser/types.c index 53b9dd5e9ec..db8c08303f5 100644 --- a/clang/test/Parser/types.c +++ b/clang/test/Parser/types.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -fsyntax-only -verify +// expected-no-diagnostics // Test the X can be overloaded inside the struct. typedef int X; |