diff --git a/clang/test/ASTMerge/exprs.c b/clang/test/ASTMerge/exprs.c index 0a4e1e51e24d..c82e6831f5c6 100644 --- a/clang/test/ASTMerge/exprs.c +++ b/clang/test/ASTMerge/exprs.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -emit-pch -o %t.1.ast %S/Inputs/exprs1.c // RUN: %clang_cc1 -emit-pch -o %t.2.ast %S/Inputs/exprs2.c // RUN: %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only -verify %s +// expected-no-diagnostics diff --git a/clang/test/Analysis/CFContainers-invalid.c b/clang/test/Analysis/CFContainers-invalid.c index 939af06b7658..3268e1eae253 100644 --- a/clang/test/Analysis/CFContainers-invalid.c +++ b/clang/test/Analysis/CFContainers-invalid.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=osx.coreFoundation.containers.PointerSizedValues -triple x86_64-apple-darwin -verify %s +// expected-no-diagnostics typedef const struct __CFAllocator * CFAllocatorRef; typedef const struct __CFArray * CFArrayRef; diff --git a/clang/test/Analysis/CFRetainRelease_NSAssertionHandler.m b/clang/test/Analysis/CFRetainRelease_NSAssertionHandler.m index 5ffcaae07fcc..853bfb24dacd 100644 --- a/clang/test/Analysis/CFRetainRelease_NSAssertionHandler.m +++ b/clang/test/Analysis/CFRetainRelease_NSAssertionHandler.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=core,osx.cocoa.RetainCount,alpha.core -verify %s -analyzer-constraints=range -analyzer-store=region +// expected-no-diagnostics typedef struct objc_selector *SEL; typedef signed char BOOL; diff --git a/clang/test/Analysis/MissingDealloc.m b/clang/test/Analysis/MissingDealloc.m index 29803382276e..b465959791b0 100644 --- a/clang/test/Analysis/MissingDealloc.m +++ b/clang/test/Analysis/MissingDealloc.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=alpha.osx.cocoa.Dealloc %s -verify +// expected-no-diagnostics typedef signed char BOOL; @protocol NSObject - (BOOL)isEqual:(id)object; diff --git a/clang/test/Analysis/NSPanel.m b/clang/test/Analysis/NSPanel.m index 602ed07ed51c..1d77d1e3702b 100644 --- a/clang/test/Analysis/NSPanel.m +++ b/clang/test/Analysis/NSPanel.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=core,osx.cocoa.RetainCount,alpha.core -analyzer-store=region -analyzer-constraints=range -verify -Wno-objc-root-class %s +// expected-no-diagnostics // BEGIN delta-debugging reduced header stuff diff --git a/clang/test/Analysis/NoReturn.m b/clang/test/Analysis/NoReturn.m index fafb44f13435..6d547f47f66c 100644 --- a/clang/test/Analysis/NoReturn.m +++ b/clang/test/Analysis/NoReturn.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=core,alpha.core -analyzer-store=region -analyzer-constraints=range -verify %s +// expected-no-diagnostics #include diff --git a/clang/test/Analysis/OSAtomic_mac.cpp b/clang/test/Analysis/OSAtomic_mac.cpp index 8ad7b3c3da66..f93895893c59 100644 --- a/clang/test/Analysis/OSAtomic_mac.cpp +++ b/clang/test/Analysis/OSAtomic_mac.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple x86_64-apple-darwin9 -analyze -analyzer-checker=core,osx -analyzer-store=region -verify -fblocks -analyzer-opt-analyze-nested-blocks %s +// expected-no-diagnostics // Test handling of OSAtomicCompareAndSwap when C++ inserts "no-op" casts and we // do a forced load and binding to the environment on an expression that would regularly diff --git a/clang/test/Analysis/ObjCProperties.m b/clang/test/Analysis/ObjCProperties.m index 53b919b729b4..1712feff5b78 100644 --- a/clang/test/Analysis/ObjCProperties.m +++ b/clang/test/Analysis/ObjCProperties.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=core,alpha.core -analyzer-store=region -analyzer-constraints=range -Wno-objc-root-class %s -verify +// expected-no-diagnostics // The point of this test cases is to exercise properties in the static // analyzer diff --git a/clang/test/Analysis/PR9741.cpp b/clang/test/Analysis/PR9741.cpp index 7497d5627c91..2807c44ab7bc 100644 --- a/clang/test/Analysis/PR9741.cpp +++ b/clang/test/Analysis/PR9741.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -cc1 -std=c++11 -Wuninitialized -verify %s +// expected-no-diagnostics void f() { int a[] = { 1, 2, 3 }; diff --git a/clang/test/Analysis/casts.c b/clang/test/Analysis/casts.c index 0e158d34ec4b..1c0f35749b22 100644 --- a/clang/test/Analysis/casts.c +++ b/clang/test/Analysis/casts.c @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -triple x86_64-apple-darwin9 -analyze -analyzer-checker=core,alpha.core -analyzer-store=region -verify %s // RUN: %clang_cc1 -triple i386-apple-darwin9 -analyze -analyzer-checker=core,alpha.core -analyzer-store=region -verify %s +// expected-no-diagnostics // Test if the 'storage' region gets properly initialized after it is cast to // 'struct sockaddr *'. diff --git a/clang/test/Analysis/casts.m b/clang/test/Analysis/casts.m index 0560692d815c..1a78940eee25 100644 --- a/clang/test/Analysis/casts.m +++ b/clang/test/Analysis/casts.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=core,alpha.core -analyzer-store=region -verify %s +// expected-no-diagnostics // Test function pointer casts. Currently we track function addresses using // loc::FunctionVal. Because casts can be arbitrary, do we need to model diff --git a/clang/test/Analysis/cfref_PR2519.c b/clang/test/Analysis/cfref_PR2519.c index 03e42220b225..7fce2263c23b 100644 --- a/clang/test/Analysis/cfref_PR2519.c +++ b/clang/test/Analysis/cfref_PR2519.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=core,osx.cocoa.RetainCount,alpha.core -analyzer-store=region -analyzer-constraints=range -verify %s +// expected-no-diagnostics typedef unsigned char Boolean; typedef signed long CFIndex; diff --git a/clang/test/Analysis/cfref_rdar6080742.c b/clang/test/Analysis/cfref_rdar6080742.c index e1a8805fbc16..0023d13703ab 100644 --- a/clang/test/Analysis/cfref_rdar6080742.c +++ b/clang/test/Analysis/cfref_rdar6080742.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=core,alpha.core -analyzer-store=region -analyzer-constraints=range -verify %s +// expected-no-diagnostics // This test case was reported in . // It tests path-sensitivity with respect to '!(cfstring != 0)' (negation of inequality). diff --git a/clang/test/Analysis/complex-init-list.cpp b/clang/test/Analysis/complex-init-list.cpp index 24244cb5eff0..bbff64b7a13f 100644 --- a/clang/test/Analysis/complex-init-list.cpp +++ b/clang/test/Analysis/complex-init-list.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=core -analyzer-output=text -verify %s +// expected-no-diagnostics // Do not crash on initialization to complex numbers. void init_complex() { diff --git a/clang/test/Analysis/concrete-address.c b/clang/test/Analysis/concrete-address.c index d460df071595..819afca967c9 100644 --- a/clang/test/Analysis/concrete-address.c +++ b/clang/test/Analysis/concrete-address.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=core,alpha.core -analyzer-store=region -verify %s +// expected-no-diagnostics void foo() { int *p = (int*) 0x10000; // Should not crash here. diff --git a/clang/test/Analysis/cstring-syntax-cxx.cpp b/clang/test/Analysis/cstring-syntax-cxx.cpp index f8975abc185b..bae3d0a16423 100644 --- a/clang/test/Analysis/cstring-syntax-cxx.cpp +++ b/clang/test/Analysis/cstring-syntax-cxx.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=unix.cstring.BadSizeArg -analyzer-store=region -verify %s +// expected-no-diagnostics // Ensure we don't crash on C++ declarations with special names. struct X { diff --git a/clang/test/Analysis/cxx-method-names.cpp b/clang/test/Analysis/cxx-method-names.cpp index 7d57c3539689..21be5e4bd3f4 100644 --- a/clang/test/Analysis/cxx-method-names.cpp +++ b/clang/test/Analysis/cxx-method-names.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=core,unix,osx,alpha.unix,alpha.security.taint -analyzer-store region -verify %s +// expected-no-diagnostics class Evil { public: diff --git a/clang/test/Analysis/cxx11-crashes.cpp b/clang/test/Analysis/cxx11-crashes.cpp index 16bfc891000f..d0b9222b6a66 100644 --- a/clang/test/Analysis/cxx11-crashes.cpp +++ b/clang/test/Analysis/cxx11-crashes.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=core -std=c++11 -verify %s +// expected-no-diagnostics // radar://11485149, PR12871 class PlotPoint { diff --git a/clang/test/Analysis/dead-stores.m b/clang/test/Analysis/dead-stores.m index 9edb60d8c13f..5a807ed52c99 100644 --- a/clang/test/Analysis/dead-stores.m +++ b/clang/test/Analysis/dead-stores.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=alpha.core -analyzer-checker=deadcode.DeadStores,osx.cocoa.RetainCount -fblocks -verify -Wno-objc-root-class %s +// expected-no-diagnostics typedef signed char BOOL; typedef unsigned int NSUInteger; diff --git a/clang/test/Analysis/delegates.m b/clang/test/Analysis/delegates.m index 7fc4f2bb9616..28e9006c18e5 100644 --- a/clang/test/Analysis/delegates.m +++ b/clang/test/Analysis/delegates.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=core,osx.cocoa.RetainCount -analyzer-store=region -Wno-objc-root-class -verify %s +// expected-no-diagnostics //===----------------------------------------------------------------------===// diff --git a/clang/test/Analysis/engine/replay-without-inlining.c b/clang/test/Analysis/engine/replay-without-inlining.c index 9ec2d08f3993..06029731694b 100644 --- a/clang/test/Analysis/engine/replay-without-inlining.c +++ b/clang/test/Analysis/engine/replay-without-inlining.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=core,unix.Malloc -verify %s +// expected-no-diagnostics typedef struct { char I[4]; diff --git a/clang/test/Analysis/idempotent-operations.m b/clang/test/Analysis/idempotent-operations.m index ef00cf975cb0..306376dd5757 100644 --- a/clang/test/Analysis/idempotent-operations.m +++ b/clang/test/Analysis/idempotent-operations.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-store=region -analyzer-constraints=range -fblocks -analyzer-opt-analyze-nested-blocks -analyzer-checker=alpha.deadcode.IdempotentOperations,osx.cocoa.RetainCount -verify %s +// expected-no-diagnostics typedef signed char BOOL; typedef unsigned long NSUInteger; diff --git a/clang/test/Analysis/inline2.c b/clang/test/Analysis/inline2.c index 2a39c66fcb1b..bae7434518e2 100644 --- a/clang/test/Analysis/inline2.c +++ b/clang/test/Analysis/inline2.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=core -verify %s +// expected-no-diagnostics // Test parameter 'a' is registered to LiveVariables analysis data although it // is not referenced in the function body. diff --git a/clang/test/Analysis/inline3.c b/clang/test/Analysis/inline3.c index 05f56fbc58e1..e7f4775925a1 100644 --- a/clang/test/Analysis/inline3.c +++ b/clang/test/Analysis/inline3.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=core -verify %s +// expected-no-diagnostics // Test when entering f1(), we set the right AnalysisDeclContext to Environment. // Otherwise, block-level expr '1 && a' would not be block-level. diff --git a/clang/test/Analysis/inline4.c b/clang/test/Analysis/inline4.c index 1dcebbe64d68..71a379a02c75 100644 --- a/clang/test/Analysis/inline4.c +++ b/clang/test/Analysis/inline4.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=core -verify %s +// expected-no-diagnostics int g(int a) { return a; diff --git a/clang/test/Analysis/inlining/test_objc_inlining_option.m b/clang/test/Analysis/inlining/test_objc_inlining_option.m index 963b572b1e3f..34502c4aa81d 100644 --- a/clang/test/Analysis/inlining/test_objc_inlining_option.m +++ b/clang/test/Analysis/inlining/test_objc_inlining_option.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=core -analyzer-ipa=dynamic-bifurcate -analyzer-config objc-inlining=false -verify %s +// expected-no-diagnostics typedef signed char BOOL; typedef struct objc_class *Class; diff --git a/clang/test/Analysis/lvalue.cpp b/clang/test/Analysis/lvalue.cpp index 0cc42f50372b..9a6bd5939743 100644 --- a/clang/test/Analysis/lvalue.cpp +++ b/clang/test/Analysis/lvalue.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=core -analyzer-store=region -verify %s +// expected-no-diagnostics int f1() { int x = 0, y = 1; diff --git a/clang/test/Analysis/malloc-overflow.cpp b/clang/test/Analysis/malloc-overflow.cpp index 79d525308363..e3a0408863e6 100644 --- a/clang/test/Analysis/malloc-overflow.cpp +++ b/clang/test/Analysis/malloc-overflow.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=alpha.security.MallocOverflow -verify %s +// expected-no-diagnostics class A { public: diff --git a/clang/test/Analysis/method-call-intra-p.cpp b/clang/test/Analysis/method-call-intra-p.cpp index 701479faa820..a1709428402c 100644 --- a/clang/test/Analysis/method-call-intra-p.cpp +++ b/clang/test/Analysis/method-call-intra-p.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=core -analyzer-store region -verify %s +// expected-no-diagnostics // Intra-procedural C++ tests. diff --git a/clang/test/Analysis/misc-ps-64.m b/clang/test/Analysis/misc-ps-64.m index dcda8d7667d1..1fbbeefd2ae4 100644 --- a/clang/test/Analysis/misc-ps-64.m +++ b/clang/test/Analysis/misc-ps-64.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple x86_64-apple-darwin9 -analyze -analyzer-checker=core,alpha.core -analyzer-store=region -analyzer-constraints=range -verify -fblocks %s +// expected-no-diagnostics // - A bunch of misc. failures involving evaluating // these expressions and building CFGs. These tests are here to prevent diff --git a/clang/test/Analysis/misc-ps-arm.m b/clang/test/Analysis/misc-ps-arm.m index a909ef13d0f8..1ff0f17cea5f 100644 --- a/clang/test/Analysis/misc-ps-arm.m +++ b/clang/test/Analysis/misc-ps-arm.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple thumbv7-apple-ios0.0.0 -analyze -analyzer-checker=core -analyzer-store=region -verify -fblocks -analyzer-opt-analyze-nested-blocks -Wno-objc-root-class %s +// expected-no-diagnostics // - Handle casts of vectors to structs, and loading // a value. diff --git a/clang/test/Analysis/misc-ps-eager-assume.m b/clang/test/Analysis/misc-ps-eager-assume.m index 58d9c8e1488c..9fbe3d0e4ee9 100644 --- a/clang/test/Analysis/misc-ps-eager-assume.m +++ b/clang/test/Analysis/misc-ps-eager-assume.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=core,alpha.core -analyzer-store=region -analyzer-constraints=range -verify -fblocks %s -analyzer-eagerly-assume +// expected-no-diagnostics // Delta-reduced header stuff (needed for test cases). typedef signed char BOOL; diff --git a/clang/test/Analysis/misc-ps-region-store-i386.m b/clang/test/Analysis/misc-ps-region-store-i386.m index 0f7040a0527c..bed6fc30d315 100644 --- a/clang/test/Analysis/misc-ps-region-store-i386.m +++ b/clang/test/Analysis/misc-ps-region-store-i386.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple i386-apple-darwin9 -analyze -analyzer-checker=core,alpha.core -analyzer-store=region -verify -fblocks %s +// expected-no-diagnostics // Here is a case where a pointer is treated as integer, invalidated as an // integer, and then used again as a pointer. This test just makes sure diff --git a/clang/test/Analysis/misc-ps-region-store-x86_64.m b/clang/test/Analysis/misc-ps-region-store-x86_64.m index 9ff877240cff..4575ad44977b 100644 --- a/clang/test/Analysis/misc-ps-region-store-x86_64.m +++ b/clang/test/Analysis/misc-ps-region-store-x86_64.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple x86_64-apple-darwin9 -analyze -analyzer-checker=core,alpha.core -analyzer-store=region -verify -fblocks %s +// expected-no-diagnostics // Here is a case where a pointer is treated as integer, invalidated as an // integer, and then used again as a pointer. This test just makes sure diff --git a/clang/test/Analysis/misc-ps-region-store.mm b/clang/test/Analysis/misc-ps-region-store.mm index a5b0b8d4b583..c19a90f011c8 100644 --- a/clang/test/Analysis/misc-ps-region-store.mm +++ b/clang/test/Analysis/misc-ps-region-store.mm @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -triple i386-apple-darwin9 -analyze -analyzer-checker=core,alpha.core -analyzer-store=region -verify -fblocks -analyzer-opt-analyze-nested-blocks %s // RUN: %clang_cc1 -triple x86_64-apple-darwin9 -analyze -analyzer-checker=core,alpha.core -analyzer-store=region -verify -fblocks -analyzer-opt-analyze-nested-blocks %s +// expected-no-diagnostics //===------------------------------------------------------------------------------------------===// // This files tests our path-sensitive handling of Objective-c++ files. diff --git a/clang/test/Analysis/no-exit-cfg.c b/clang/test/Analysis/no-exit-cfg.c index ee248e04c163..b3c3fbcc6241 100644 --- a/clang/test/Analysis/no-exit-cfg.c +++ b/clang/test/Analysis/no-exit-cfg.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=core,alpha.core -analyzer-store=region -verify %s +// expected-no-diagnostics // This is a test case for the issue reported in PR 2819: // http://llvm.org/bugs/show_bug.cgi?id=2819 diff --git a/clang/test/Analysis/null-deref-ps-region.c b/clang/test/Analysis/null-deref-ps-region.c index 30dba25d1dbe..5bb945486fbc 100644 --- a/clang/test/Analysis/null-deref-ps-region.c +++ b/clang/test/Analysis/null-deref-ps-region.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=core,alpha.core -std=gnu99 -analyzer-store=region -verify %s +// expected-no-diagnostics // The store for 'a[1]' should not be removed mistakenly. SymbolicRegions may diff --git a/clang/test/Analysis/objc-bool.m b/clang/test/Analysis/objc-bool.m index f95736a6df51..a2d10cc3bade 100644 --- a/clang/test/Analysis/objc-bool.m +++ b/clang/test/Analysis/objc-bool.m @@ -1,4 +1,5 @@ // RUN: %clang --analyze %s -o %t -Xclang -verify +// expected-no-diagnostics // Test handling of ObjC bool literals. diff --git a/clang/test/Analysis/pr_4164.c b/clang/test/Analysis/pr_4164.c index 972a6b2dd403..0d2ca41b32e1 100644 --- a/clang/test/Analysis/pr_4164.c +++ b/clang/test/Analysis/pr_4164.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple x86_64-apple-darwin9 -analyze -analyzer-checker=core,alpha.core -analyzer-store=region -verify %s +// expected-no-diagnostics // PR 4164: http://llvm.org/bugs/show_bug.cgi?id=4164 // diff --git a/clang/test/Analysis/rdar-6442306-1.m b/clang/test/Analysis/rdar-6442306-1.m index aad055a70a12..0fb49c2a9b2f 100644 --- a/clang/test/Analysis/rdar-6442306-1.m +++ b/clang/test/Analysis/rdar-6442306-1.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=core,alpha.core %s -analyzer-store=region -verify +// expected-no-diagnostics typedef int bar_return_t; typedef struct { diff --git a/clang/test/Analysis/rdar-6562655.m b/clang/test/Analysis/rdar-6562655.m index d2f5fd9855a8..1c866bb03732 100644 --- a/clang/test/Analysis/rdar-6562655.m +++ b/clang/test/Analysis/rdar-6562655.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=core,osx.cocoa.RetainCount,alpha.core -analyzer-constraints=range -analyzer-store=region -verify %s +// expected-no-diagnostics // // This test case mainly checks that the retain/release checker doesn't crash // on this file. diff --git a/clang/test/Analysis/rdar-6600344-nil-receiver-undefined-struct-ret.m b/clang/test/Analysis/rdar-6600344-nil-receiver-undefined-struct-ret.m index 3f3c778779f7..74d5484fae8b 100644 --- a/clang/test/Analysis/rdar-6600344-nil-receiver-undefined-struct-ret.m +++ b/clang/test/Analysis/rdar-6600344-nil-receiver-undefined-struct-ret.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=core,alpha.core -analyzer-constraints=range -analyzer-store=region -verify -Wno-objc-root-class %s +// expected-no-diagnostics typedef struct Foo { int x; } Bar; diff --git a/clang/test/Analysis/redefined_system.c b/clang/test/Analysis/redefined_system.c index 2b998200e706..ae5bf2647f70 100644 --- a/clang/test/Analysis/redefined_system.c +++ b/clang/test/Analysis/redefined_system.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=unix,core,alpha.security.taint -w -verify %s +// expected-no-diagnostics // Make sure we don't crash when someone redefines a system function we reason about. diff --git a/clang/test/Analysis/region-1.m b/clang/test/Analysis/region-1.m index 98ac582b762d..9edb35b78b7c 100644 --- a/clang/test/Analysis/region-1.m +++ b/clang/test/Analysis/region-1.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=core,alpha.core -analyzer-store=region -verify %s +// expected-no-diagnostics // // This test case simply should not crash. It evaluates the logic of not // using MemRegion::getRValueType in incorrect places. diff --git a/clang/test/Analysis/region-store.c b/clang/test/Analysis/region-store.c index 09c3f102e3ad..d62015008572 100644 --- a/clang/test/Analysis/region-store.c +++ b/clang/test/Analysis/region-store.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=core,unix -verify %s +// expected-no-diagnostics int printf(const char *restrict,...); diff --git a/clang/test/Analysis/security-syntax-checks-no-emit.c b/clang/test/Analysis/security-syntax-checks-no-emit.c index c2869cabae99..7759aa73b33b 100644 --- a/clang/test/Analysis/security-syntax-checks-no-emit.c +++ b/clang/test/Analysis/security-syntax-checks-no-emit.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple i686-pc-linux-gnu -analyze -analyzer-checker=security.insecureAPI,security.FloatLoopCounter %s -verify +// expected-no-diagnostics // This file complements 'security-syntax-checks.m', but tests that we omit // specific checks on platforms where they don't make sense. diff --git a/clang/test/Analysis/static_local.m b/clang/test/Analysis/static_local.m index 709262535f78..dcd49e11a16c 100644 --- a/clang/test/Analysis/static_local.m +++ b/clang/test/Analysis/static_local.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=core -verify -Wno-objc-root-class %s +// expected-no-diagnostics // Test reasoning about static locals in ObjCMethods. int *getValidPtr(); diff --git a/clang/test/Analysis/svalbuilder-logic.c b/clang/test/Analysis/svalbuilder-logic.c index bc79f859053c..41d4fe21c2f0 100644 --- a/clang/test/Analysis/svalbuilder-logic.c +++ b/clang/test/Analysis/svalbuilder-logic.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=core,unix -verify %s +// expected-no-diagnostics // Testing core functionality of the SValBuilder. diff --git a/clang/test/Analysis/taint-tester.cpp b/clang/test/Analysis/taint-tester.cpp index ded8dc91bfb3..f97eefb950e3 100644 --- a/clang/test/Analysis/taint-tester.cpp +++ b/clang/test/Analysis/taint-tester.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=alpha.security.taint,debug.TaintTest %s -verify +// expected-no-diagnostics typedef struct _FILE FILE; typedef __typeof(sizeof(int)) size_t; diff --git a/clang/test/Analysis/taint-tester.m b/clang/test/Analysis/taint-tester.m index 55feb73e6bc1..b5663ca02777 100644 --- a/clang/test/Analysis/taint-tester.m +++ b/clang/test/Analysis/taint-tester.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=alpha.security.taint,debug.TaintTest %s -verify +// expected-no-diagnostics #import diff --git a/clang/test/Analysis/uninit-vals.m b/clang/test/Analysis/uninit-vals.m index 4ba26f59b720..1cd57590df05 100644 --- a/clang/test/Analysis/uninit-vals.m +++ b/clang/test/Analysis/uninit-vals.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=core -analyzer-store=region -verify %s +// expected-no-diagnostics typedef unsigned int NSUInteger; diff --git a/clang/test/Analysis/unions-region.m b/clang/test/Analysis/unions-region.m index 1a716847186f..3a9fb93bf8ad 100644 --- a/clang/test/Analysis/unions-region.m +++ b/clang/test/Analysis/unions-region.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=core -analyzer-store=region -analyzer-constraints=range %s -verify +// expected-no-diagnostics //===-- unions-region.m ---------------------------------------------------===// // diff --git a/clang/test/Analysis/unions.cpp b/clang/test/Analysis/unions.cpp index e7671a90b90e..2bffe78b41c2 100644 --- a/clang/test/Analysis/unions.cpp +++ b/clang/test/Analysis/unions.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=core %s -verify +// expected-no-diagnostics namespace PR14054_reduced { struct Definition; diff --git a/clang/test/CXX/basic/basic.lookup/basic.lookup.argdep/p2-template-id.cpp b/clang/test/CXX/basic/basic.lookup/basic.lookup.argdep/p2-template-id.cpp index f650ad517a19..eda869b9934d 100644 --- a/clang/test/CXX/basic/basic.lookup/basic.lookup.argdep/p2-template-id.cpp +++ b/clang/test/CXX/basic/basic.lookup/basic.lookup.argdep/p2-template-id.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics namespace N1 { struct X { }; diff --git a/clang/test/CXX/basic/basic.lookup/basic.lookup.classref/p3.cpp b/clang/test/CXX/basic/basic.lookup/basic.lookup.classref/p3.cpp index cd7e669527bc..ef4243e28e89 100644 --- a/clang/test/CXX/basic/basic.lookup/basic.lookup.classref/p3.cpp +++ b/clang/test/CXX/basic/basic.lookup/basic.lookup.classref/p3.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // C++0x [basic.lookup.classref]p3: // If the unqualified-id is ~type-name, the type-name is looked up in the diff --git a/clang/test/CXX/basic/basic.lookup/basic.lookup.classref/p4-cxx11.cpp b/clang/test/CXX/basic/basic.lookup/basic.lookup.classref/p4-cxx11.cpp index 792545453e73..a4721d61a871 100644 --- a/clang/test/CXX/basic/basic.lookup/basic.lookup.classref/p4-cxx11.cpp +++ b/clang/test/CXX/basic/basic.lookup/basic.lookup.classref/p4-cxx11.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 %s -verify +// expected-no-diagnostics struct A { void f(); }; struct C { void f(); }; diff --git a/clang/test/CXX/basic/basic.lookup/basic.lookup.qual/namespace.qual/p3.cpp b/clang/test/CXX/basic/basic.lookup/basic.lookup.qual/namespace.qual/p3.cpp index dc0f8b4af23c..1060f6159911 100644 --- a/clang/test/CXX/basic/basic.lookup/basic.lookup.qual/namespace.qual/p3.cpp +++ b/clang/test/CXX/basic/basic.lookup/basic.lookup.qual/namespace.qual/p3.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // This is basically paraphrased from the standard. diff --git a/clang/test/CXX/basic/basic.lookup/basic.lookup.qual/namespace.qual/p4.cpp b/clang/test/CXX/basic/basic.lookup/basic.lookup.qual/namespace.qual/p4.cpp index 38eccfa2248b..7c292d58f500 100644 --- a/clang/test/CXX/basic/basic.lookup/basic.lookup.qual/namespace.qual/p4.cpp +++ b/clang/test/CXX/basic/basic.lookup/basic.lookup.qual/namespace.qual/p4.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics namespace A { int a; diff --git a/clang/test/CXX/basic/basic.lookup/basic.lookup.udir/p1.cpp b/clang/test/CXX/basic/basic.lookup/basic.lookup.udir/p1.cpp index ab0dc248f3dc..91f5a54eb9ce 100644 --- a/clang/test/CXX/basic/basic.lookup/basic.lookup.udir/p1.cpp +++ b/clang/test/CXX/basic/basic.lookup/basic.lookup.udir/p1.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // When looking up a namespace-name in a using-directive or // namespace-alias-definition, only namespace names are considered. diff --git a/clang/test/CXX/basic/basic.lookup/basic.lookup.unqual/p12.cpp b/clang/test/CXX/basic/basic.lookup/basic.lookup.unqual/p12.cpp index 878ff078bc26..6bf74c1da131 100644 --- a/clang/test/CXX/basic/basic.lookup/basic.lookup.unqual/p12.cpp +++ b/clang/test/CXX/basic/basic.lookup/basic.lookup.unqual/p12.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics struct S {}; S E0; diff --git a/clang/test/CXX/basic/basic.lookup/basic.lookup.unqual/p13.cpp b/clang/test/CXX/basic/basic.lookup/basic.lookup.unqual/p13.cpp index 58d7ff4d16af..ba34571d7b6c 100644 --- a/clang/test/CXX/basic/basic.lookup/basic.lookup.unqual/p13.cpp +++ b/clang/test/CXX/basic/basic.lookup/basic.lookup.unqual/p13.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics struct S { static const int f0 = 0; diff --git a/clang/test/CXX/basic/basic.lookup/basic.lookup.unqual/p14.cpp b/clang/test/CXX/basic/basic.lookup/basic.lookup.unqual/p14.cpp index 0fa4f650b0bb..4ffe538bebb0 100644 --- a/clang/test/CXX/basic/basic.lookup/basic.lookup.unqual/p14.cpp +++ b/clang/test/CXX/basic/basic.lookup/basic.lookup.unqual/p14.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // C++0x [basic.lookup.unqual]p14: // If a variable member of a namespace is defined outside of the diff --git a/clang/test/CXX/basic/basic.lookup/basic.lookup.unqual/p3.cpp b/clang/test/CXX/basic/basic.lookup/basic.lookup.unqual/p3.cpp index 20a7ae05a12a..abcc6eee94a7 100644 --- a/clang/test/CXX/basic/basic.lookup/basic.lookup.unqual/p3.cpp +++ b/clang/test/CXX/basic/basic.lookup/basic.lookup.unqual/p3.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics typedef int f; diff --git a/clang/test/CXX/basic/basic.scope/basic.scope.pdecl/p9.cpp b/clang/test/CXX/basic/basic.scope/basic.scope.pdecl/p9.cpp index e64b6752f082..c62753538040 100644 --- a/clang/test/CXX/basic/basic.scope/basic.scope.pdecl/p9.cpp +++ b/clang/test/CXX/basic/basic.scope/basic.scope.pdecl/p9.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // Template type parameters. typedef unsigned char T; diff --git a/clang/test/CXX/basic/basic.start/basic.start.main/p2a.cpp b/clang/test/CXX/basic/basic.start/basic.start.main/p2a.cpp index b8dfbe78b6cc..b27d492afc44 100644 --- a/clang/test/CXX/basic/basic.start/basic.start.main/p2a.cpp +++ b/clang/test/CXX/basic/basic.start/basic.start.main/p2a.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics typedef int Int; typedef char Char; diff --git a/clang/test/CXX/basic/basic.start/basic.start.main/p2b.cpp b/clang/test/CXX/basic/basic.start/basic.start.main/p2b.cpp index 785382cd077b..65cd2027109e 100644 --- a/clang/test/CXX/basic/basic.start/basic.start.main/p2b.cpp +++ b/clang/test/CXX/basic/basic.start/basic.start.main/p2b.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics typedef int Int; typedef char Char; diff --git a/clang/test/CXX/basic/basic.start/basic.start.main/p2c.cpp b/clang/test/CXX/basic/basic.start/basic.start.main/p2c.cpp index 81b08b98758d..2b082ec604e6 100644 --- a/clang/test/CXX/basic/basic.start/basic.start.main/p2c.cpp +++ b/clang/test/CXX/basic/basic.start/basic.start.main/p2c.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics int main() { } diff --git a/clang/test/CXX/basic/basic.start/basic.start.main/p2g.cpp b/clang/test/CXX/basic/basic.start/basic.start.main/p2g.cpp index e3209fd3ce94..45f643fd9a39 100644 --- a/clang/test/CXX/basic/basic.start/basic.start.main/p2g.cpp +++ b/clang/test/CXX/basic/basic.start/basic.start.main/p2g.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics int main(int argc, const char* const* argv) { } diff --git a/clang/test/CXX/basic/basic.stc/basic.stc.dynamic/p2-nodef.cpp b/clang/test/CXX/basic/basic.stc/basic.stc.dynamic/p2-nodef.cpp index 6cd587c4de40..9a740df5cebe 100644 --- a/clang/test/CXX/basic/basic.stc/basic.stc.dynamic/p2-nodef.cpp +++ b/clang/test/CXX/basic/basic.stc/basic.stc.dynamic/p2-nodef.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics int *use_new(int N) { return new int [N]; diff --git a/clang/test/CXX/basic/basic.stc/basic.stc.dynamic/p2-noexceptions.cpp b/clang/test/CXX/basic/basic.stc/basic.stc.dynamic/p2-noexceptions.cpp index 4567c469e817..9819ea0293f6 100644 --- a/clang/test/CXX/basic/basic.stc/basic.stc.dynamic/p2-noexceptions.cpp +++ b/clang/test/CXX/basic/basic.stc/basic.stc.dynamic/p2-noexceptions.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics namespace std { class bad_alloc { }; diff --git a/clang/test/CXX/class.access/class.protected/p1-cxx11.cpp b/clang/test/CXX/class.access/class.protected/p1-cxx11.cpp index dc9b20d17c0e..c1cf047aadb4 100644 --- a/clang/test/CXX/class.access/class.protected/p1-cxx11.cpp +++ b/clang/test/CXX/class.access/class.protected/p1-cxx11.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // PR12497 namespace test0 { diff --git a/clang/test/CXX/class.derived/p2.cpp b/clang/test/CXX/class.derived/p2.cpp index 7ef53d36ab7b..87e0f7486154 100644 --- a/clang/test/CXX/class.derived/p2.cpp +++ b/clang/test/CXX/class.derived/p2.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -fsyntax-only -verify +// expected-no-diagnostics // "During the lookup for a base class name, non-type names are ignored" namespace PR5840 { diff --git a/clang/test/CXX/class/class.friend/p1-ambiguous.cpp b/clang/test/CXX/class/class.friend/p1-ambiguous.cpp index a9dca4fa8ec8..3bb32718361d 100644 --- a/clang/test/CXX/class/class.friend/p1-ambiguous.cpp +++ b/clang/test/CXX/class/class.friend/p1-ambiguous.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // Make sure that friend declarations don't introduce ambiguous // declarations. diff --git a/clang/test/CXX/class/class.friend/p1-cxx11.cpp b/clang/test/CXX/class/class.friend/p1-cxx11.cpp index 235f295d1277..6e3d85001fa8 100644 --- a/clang/test/CXX/class/class.friend/p1-cxx11.cpp +++ b/clang/test/CXX/class/class.friend/p1-cxx11.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s +// expected-no-diagnostics class A { class AInner { diff --git a/clang/test/CXX/class/class.nest/p3.cpp b/clang/test/CXX/class/class.nest/p3.cpp index c4c4ca7e094f..677411fe3c8a 100644 --- a/clang/test/CXX/class/class.nest/p3.cpp +++ b/clang/test/CXX/class/class.nest/p3.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // C++0x [class.nest] p3: // If class X is defined in a namespace scope, a nested class Y may be diff --git a/clang/test/CXX/class/p1-0x.cpp b/clang/test/CXX/class/p1-0x.cpp index be5fdffb43f4..5c327880e4b7 100644 --- a/clang/test/CXX/class/p1-0x.cpp +++ b/clang/test/CXX/class/p1-0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11 +// expected-no-diagnostics namespace Test1 { class A final { }; diff --git a/clang/test/CXX/class/p6-0x.cpp b/clang/test/CXX/class/p6-0x.cpp index e153b4daaf3c..cf628a6343ae 100644 --- a/clang/test/CXX/class/p6-0x.cpp +++ b/clang/test/CXX/class/p6-0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11 +// expected-no-diagnostics class Trivial { int n; void f(); }; class NonTrivial1 { NonTrivial1(const NonTrivial1 &); }; diff --git a/clang/test/CXX/conv/conv.prom/p2.cpp b/clang/test/CXX/conv/conv.prom/p2.cpp index 6549a1a0bdaa..ca64cfa8d0ec 100644 --- a/clang/test/CXX/conv/conv.prom/p2.cpp +++ b/clang/test/CXX/conv/conv.prom/p2.cpp @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x -triple x86_64-pc-linux-gnu -ffreestanding %s // RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x -triple x86_64-pc-linux-gnu -ffreestanding -fshort-wchar %s +// expected-no-diagnostics #include diff --git a/clang/test/CXX/conv/conv.prom/p4.cpp b/clang/test/CXX/conv/conv.prom/p4.cpp index 5f34dc4d397e..8c86d2a1838d 100644 --- a/clang/test/CXX/conv/conv.prom/p4.cpp +++ b/clang/test/CXX/conv/conv.prom/p4.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x %s +// expected-no-diagnostics enum X : short { A, B }; extern decltype(+A) x; diff --git a/clang/test/CXX/conv/conv.ptr/p2.cpp b/clang/test/CXX/conv/conv.ptr/p2.cpp index 8808d203fd91..b7617696e6fb 100644 --- a/clang/test/CXX/conv/conv.ptr/p2.cpp +++ b/clang/test/CXX/conv/conv.ptr/p2.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics namespace pr7801 { extern void* x[]; diff --git a/clang/test/CXX/conv/conv.qual/pr6089.cpp b/clang/test/CXX/conv/conv.qual/pr6089.cpp index ae75ec41bd8f..bfadc6cac48e 100644 --- a/clang/test/CXX/conv/conv.qual/pr6089.cpp +++ b/clang/test/CXX/conv/conv.qual/pr6089.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics bool is_char_ptr( const char* ); diff --git a/clang/test/CXX/dcl.dcl/basic.namespace/namespace.def/p2.cpp b/clang/test/CXX/dcl.dcl/basic.namespace/namespace.def/p2.cpp index 411c16cd8dfb..943e05322d25 100644 --- a/clang/test/CXX/dcl.dcl/basic.namespace/namespace.def/p2.cpp +++ b/clang/test/CXX/dcl.dcl/basic.namespace/namespace.def/p2.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // PR8430 namespace N { diff --git a/clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p10.cpp b/clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p10.cpp index 546c4a477f7b..ae40062fe14c 100644 --- a/clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p10.cpp +++ b/clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p10.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics namespace test0 { namespace ns0 { diff --git a/clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p13.cpp b/clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p13.cpp index dd44bfc914b2..699d80ae7c7f 100644 --- a/clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p13.cpp +++ b/clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p13.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // C++03 [namespace.udecl]p3: // For the purpose of overload resolution, the functions which are diff --git a/clang/test/CXX/dcl.dcl/basic.namespace/namespace.udir/p6.cpp b/clang/test/CXX/dcl.dcl/basic.namespace/namespace.udir/p6.cpp index 4cb91cdf0021..2bcbe269e122 100644 --- a/clang/test/CXX/dcl.dcl/basic.namespace/namespace.udir/p6.cpp +++ b/clang/test/CXX/dcl.dcl/basic.namespace/namespace.udir/p6.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // typedef int pid_t; diff --git a/clang/test/CXX/dcl.decl/dcl.init/dcl.init.ref/basic.cpp b/clang/test/CXX/dcl.decl/dcl.init/dcl.init.ref/basic.cpp index 885d11b9c24a..2c9cd88e40bf 100644 --- a/clang/test/CXX/dcl.decl/dcl.init/dcl.init.ref/basic.cpp +++ b/clang/test/CXX/dcl.decl/dcl.init/dcl.init.ref/basic.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // PR5787 class C { diff --git a/clang/test/CXX/dcl.decl/dcl.init/dcl.init.ref/p1.cpp b/clang/test/CXX/dcl.decl/dcl.init/dcl.init.ref/p1.cpp index 20c059eab6f3..76053f028e2b 100644 --- a/clang/test/CXX/dcl.decl/dcl.init/dcl.init.ref/p1.cpp +++ b/clang/test/CXX/dcl.decl/dcl.init/dcl.init.ref/p1.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s +// expected-no-diagnostics int g(int); void f() { int i; diff --git a/clang/test/CXX/dcl.decl/dcl.init/dcl.init.string/p1.cpp b/clang/test/CXX/dcl.decl/dcl.init/dcl.init.string/p1.cpp index 3631af1b7fd2..878d2c68ec33 100644 --- a/clang/test/CXX/dcl.decl/dcl.init/dcl.init.string/p1.cpp +++ b/clang/test/CXX/dcl.decl/dcl.init/dcl.init.string/p1.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics char x1[]("hello"); extern char x1[6]; diff --git a/clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct.default/p2.cpp b/clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct.default/p2.cpp index 0a107eb2b139..68aabca71eac 100644 --- a/clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct.default/p2.cpp +++ b/clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct.default/p2.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics void point(int = 3, int = 4); diff --git a/clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct/p14.cpp b/clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct/p14.cpp index 0e69521fbdfc..bc249b5a087b 100644 --- a/clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct/p14.cpp +++ b/clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct/p14.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics template struct identity; template struct tuple; diff --git a/clang/test/CXX/dcl.decl/dcl.meaning/dcl.ref/p6-0x.cpp b/clang/test/CXX/dcl.decl/dcl.meaning/dcl.ref/p6-0x.cpp index 4ce80bc35ac9..cd623df71e81 100644 --- a/clang/test/CXX/dcl.decl/dcl.meaning/dcl.ref/p6-0x.cpp +++ b/clang/test/CXX/dcl.decl/dcl.meaning/dcl.ref/p6-0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics template struct is_same { diff --git a/clang/test/CXX/dcl.decl/dcl.name/p1.cpp b/clang/test/CXX/dcl.decl/dcl.name/p1.cpp index 9838b4f4737d..e032a7f92a5c 100644 --- a/clang/test/CXX/dcl.decl/dcl.name/p1.cpp +++ b/clang/test/CXX/dcl.decl/dcl.name/p1.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics namespace pr6200 { struct v {}; diff --git a/clang/test/CXX/dcl.decl/p4-0x.cpp b/clang/test/CXX/dcl.decl/p4-0x.cpp index 98c33b25f4d2..35177a038697 100644 --- a/clang/test/CXX/dcl.decl/p4-0x.cpp +++ b/clang/test/CXX/dcl.decl/p4-0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics struct X { void f() &; diff --git a/clang/test/CXX/except/except.spec/canonical.cpp b/clang/test/CXX/except/except.spec/canonical.cpp index 81ca2ae0a20e..b6d3e9c7aba1 100644 --- a/clang/test/CXX/except/except.spec/canonical.cpp +++ b/clang/test/CXX/except/except.spec/canonical.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s +// expected-no-diagnostics // PR10087: Make sure that we don't conflate exception specifications // from different functions in the canonical type system. diff --git a/clang/test/CXX/except/except.spec/p11.cpp b/clang/test/CXX/except/except.spec/p11.cpp index 0e4fad53e350..1f6bf2131cd6 100644 --- a/clang/test/CXX/except/except.spec/p11.cpp +++ b/clang/test/CXX/except/except.spec/p11.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fexceptions -fcxx-exceptions -fsyntax-only -verify %s +// expected-no-diagnostics // This is the "let the user shoot himself in the foot" clause. void f() noexcept { diff --git a/clang/test/CXX/expr/expr.cast/p4-0x.cpp b/clang/test/CXX/expr/expr.cast/p4-0x.cpp index 96bf5f91196b..76ac31801730 100644 --- a/clang/test/CXX/expr/expr.cast/p4-0x.cpp +++ b/clang/test/CXX/expr/expr.cast/p4-0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics struct X { }; struct Y : X { }; diff --git a/clang/test/CXX/expr/expr.const/p3-0x-nowarn.cpp b/clang/test/CXX/expr/expr.const/p3-0x-nowarn.cpp index c891374519fb..7d12cedeacf0 100644 --- a/clang/test/CXX/expr/expr.const/p3-0x-nowarn.cpp +++ b/clang/test/CXX/expr/expr.const/p3-0x-nowarn.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -std=c++11 -Wno-c++11-narrowing -verify %s +// expected-no-diagnostics // void f(int x) { diff --git a/clang/test/CXX/expr/expr.post/expr.const.cast/p1-0x.cpp b/clang/test/CXX/expr/expr.post/expr.const.cast/p1-0x.cpp index 6ba8d519346e..be898761fafa 100644 --- a/clang/test/CXX/expr/expr.post/expr.const.cast/p1-0x.cpp +++ b/clang/test/CXX/expr/expr.post/expr.const.cast/p1-0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics // The result of the expression const_cast(v) is of type T. If T is // an lvalue reference to object type, the result is an lvalue; if T diff --git a/clang/test/CXX/expr/expr.post/expr.ref/p3.cpp b/clang/test/CXX/expr/expr.post/expr.ref/p3.cpp index 98771d34b63d..db33c014eeb7 100644 --- a/clang/test/CXX/expr/expr.post/expr.ref/p3.cpp +++ b/clang/test/CXX/expr/expr.post/expr.ref/p3.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -verify -fsyntax-only %s +// expected-no-diagnostics template struct Node { int lhs; diff --git a/clang/test/CXX/expr/expr.post/expr.static.cast/p3-0x.cpp b/clang/test/CXX/expr/expr.post/expr.static.cast/p3-0x.cpp index 9ef15e6642b1..830ccda245ba 100644 --- a/clang/test/CXX/expr/expr.post/expr.static.cast/p3-0x.cpp +++ b/clang/test/CXX/expr/expr.post/expr.static.cast/p3-0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics // A glvalue of type "cv1 T1" can be cast to type "rvalue reference to // cv2 T2" if "cv2 T2" is reference-compatible with "cv1 T1" (8.5.3). diff --git a/clang/test/CXX/expr/expr.post/expr.static.cast/p9-0x.cpp b/clang/test/CXX/expr/expr.post/expr.static.cast/p9-0x.cpp index 731c50844428..c624c7e3f2f9 100644 --- a/clang/test/CXX/expr/expr.post/expr.static.cast/p9-0x.cpp +++ b/clang/test/CXX/expr/expr.post/expr.static.cast/p9-0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics enum class EC { ec1 }; diff --git a/clang/test/CXX/expr/expr.post/expr.type.conv/p1-0x.cpp b/clang/test/CXX/expr/expr.post/expr.type.conv/p1-0x.cpp index 253744e23f57..568c61b95fb9 100644 --- a/clang/test/CXX/expr/expr.post/expr.type.conv/p1-0x.cpp +++ b/clang/test/CXX/expr/expr.post/expr.type.conv/p1-0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s +// expected-no-diagnostics struct foo { foo(); diff --git a/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p15.cpp b/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p15.cpp index c4deba9c9743..b4b1605ab002 100644 --- a/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p15.cpp +++ b/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p15.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -std=c++11 %s -verify +// expected-no-diagnostics class NonCopyable { NonCopyable(const NonCopyable&); diff --git a/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p18.cpp b/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p18.cpp index 930a4b32fa06..93c2805497f3 100644 --- a/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p18.cpp +++ b/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p18.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 %s -Wunused -verify +// expected-no-diagnostics template struct is_same { diff --git a/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p20.cpp b/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p20.cpp index 4487cfc4ba28..17eb841fc3fc 100644 --- a/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p20.cpp +++ b/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p20.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 %s -Wunused -verify +// expected-no-diagnostics template void destroy(T* ptr) { diff --git a/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p21.cpp b/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p21.cpp index 7139058cd089..bc2c9997379a 100644 --- a/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p21.cpp +++ b/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p21.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -std=c++11 %s -verify +// expected-no-diagnostics struct DirectInitOnly { explicit DirectInitOnly(DirectInitOnly&); diff --git a/clang/test/CXX/expr/expr.unary/expr.unary.noexcept/sema.cpp b/clang/test/CXX/expr/expr.unary/expr.unary.noexcept/sema.cpp index b5de1a7f8fee..1f5969d49327 100644 --- a/clang/test/CXX/expr/expr.unary/expr.unary.noexcept/sema.cpp +++ b/clang/test/CXX/expr/expr.unary/expr.unary.noexcept/sema.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fcxx-exceptions -fexceptions -fsyntax-only -verify -std=c++11 -fms-extensions %s +// expected-no-diagnostics #define P(e) static_assert(noexcept(e), "expected nothrow") #define N(e) static_assert(!noexcept(e), "expected throw") diff --git a/clang/test/CXX/expr/expr.unary/expr.unary.op/p3.cpp b/clang/test/CXX/expr/expr.unary/expr.unary.op/p3.cpp index 2dd6b23fa024..08ab0ca56fb6 100644 --- a/clang/test/CXX/expr/expr.unary/expr.unary.op/p3.cpp +++ b/clang/test/CXX/expr/expr.unary/expr.unary.op/p3.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only %s -verify +// expected-no-diagnostics namespace rdar10544564 { // Check that we don't attempt to use an overloaded operator& when diff --git a/clang/test/CXX/expr/p8.cpp b/clang/test/CXX/expr/p8.cpp index 2f6c094301ee..471d1c5a3020 100644 --- a/clang/test/CXX/expr/p8.cpp +++ b/clang/test/CXX/expr/p8.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics int a0; const volatile int a1 = 2; diff --git a/clang/test/CXX/expr/p9.cpp b/clang/test/CXX/expr/p9.cpp index 803b0cc459b2..4c60b8ba62e4 100644 --- a/clang/test/CXX/expr/p9.cpp +++ b/clang/test/CXX/expr/p9.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // floating-point overloads diff --git a/clang/test/CXX/lex/lex.literal/lex.ccon/p1.cpp b/clang/test/CXX/lex/lex.literal/lex.ccon/p1.cpp index 5342153b63ba..f84f5fba3e0a 100644 --- a/clang/test/CXX/lex/lex.literal/lex.ccon/p1.cpp +++ b/clang/test/CXX/lex/lex.literal/lex.ccon/p1.cpp @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics // Check types of char literals extern char a; diff --git a/clang/test/CXX/lex/lex.trigraph/p3.cpp b/clang/test/CXX/lex/lex.trigraph/p3.cpp index 2be03285fe65..c74d8f358d02 100644 --- a/clang/test/CXX/lex/lex.trigraph/p3.cpp +++ b/clang/test/CXX/lex/lex.trigraph/p3.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -trigraphs -Wtrigraphs -verify %s +// expected-no-diagnostics char a[] = "?? ??\"??#??$??%??&??*??+??,??.??0??1??2??3??4??5??6" diff --git a/clang/test/CXX/over/over.built/p23.cpp b/clang/test/CXX/over/over.built/p23.cpp index 41255214ec6a..a1c0d4f3f612 100644 --- a/clang/test/CXX/over/over.built/p23.cpp +++ b/clang/test/CXX/over/over.built/p23.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s +// expected-no-diagnostics struct Variant { template operator T(); diff --git a/clang/test/CXX/over/over.built/p25.cpp b/clang/test/CXX/over/over.built/p25.cpp index aea3854a420e..09e550ddc0ec 100644 --- a/clang/test/CXX/over/over.built/p25.cpp +++ b/clang/test/CXX/over/over.built/p25.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s +// expected-no-diagnostics enum class Color { Red, Green, Blue }; diff --git a/clang/test/CXX/over/over.match/over.match.best/over.ics.rank/p3-0x.cpp b/clang/test/CXX/over/over.match/over.match.best/over.ics.rank/p3-0x.cpp index 3971acc58169..f813305b4a19 100644 --- a/clang/test/CXX/over/over.match/over.match.best/over.ics.rank/p3-0x.cpp +++ b/clang/test/CXX/over/over.match/over.match.best/over.ics.rank/p3-0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics namespace std_example { int i; int f1(); diff --git a/clang/test/CXX/over/over.match/over.match.best/p1.cpp b/clang/test/CXX/over/over.match/over.match.best/p1.cpp index 5c315a736052..59e3dac74283 100644 --- a/clang/test/CXX/over/over.match/over.match.best/p1.cpp +++ b/clang/test/CXX/over/over.match/over.match.best/p1.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics template int &f0(T*, int); float &f0(void*, int); diff --git a/clang/test/CXX/over/over.match/over.match.funcs/over.match.oper/p3.cpp b/clang/test/CXX/over/over.match/over.match.funcs/over.match.oper/p3.cpp index c8b07e53faeb..35f8808fff88 100644 --- a/clang/test/CXX/over/over.match/over.match.funcs/over.match.oper/p3.cpp +++ b/clang/test/CXX/over/over.match/over.match.funcs/over.match.oper/p3.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s +// expected-no-diagnostics // This is specifically testing the bullet: // "do not have the same parameter-type-list as any non-template diff --git a/clang/test/CXX/over/over.match/over.match.funcs/p4-0x.cpp b/clang/test/CXX/over/over.match/over.match.funcs/p4-0x.cpp index 3845af09d14c..68c79900b951 100644 --- a/clang/test/CXX/over/over.match/over.match.funcs/p4-0x.cpp +++ b/clang/test/CXX/over/over.match/over.match.funcs/p4-0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics template T &lvalue(); template T &&xvalue(); diff --git a/clang/test/CXX/over/over.oper/over.literal/p7.cpp b/clang/test/CXX/over/over.oper/over.literal/p7.cpp index 72411b954e14..74e9457bb55c 100644 --- a/clang/test/CXX/over/over.oper/over.literal/p7.cpp +++ b/clang/test/CXX/over/over.oper/over.literal/p7.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 %s -verify +// expected-no-diagnostics constexpr int operator "" _a(const char *c) { return c[0]; diff --git a/clang/test/CXX/special/class.conv/class.conv.ctor/p1.cpp b/clang/test/CXX/special/class.conv/class.conv.ctor/p1.cpp index d2add82f420f..5a45f7c358a3 100644 --- a/clang/test/CXX/special/class.conv/class.conv.ctor/p1.cpp +++ b/clang/test/CXX/special/class.conv/class.conv.ctor/p1.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 %s -verify +// expected-no-diagnostics namespace PR13003 { struct void_type diff --git a/clang/test/CXX/special/class.copy/p15-0x.cpp b/clang/test/CXX/special/class.copy/p15-0x.cpp index fff88442555c..9d03a55423db 100644 --- a/clang/test/CXX/special/class.copy/p15-0x.cpp +++ b/clang/test/CXX/special/class.copy/p15-0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s +// expected-no-diagnostics namespace PR10622 { struct foo { diff --git a/clang/test/CXX/special/class.copy/p8-cxx11.cpp b/clang/test/CXX/special/class.copy/p8-cxx11.cpp index a2613f461298..4a9f3f2113df 100644 --- a/clang/test/CXX/special/class.copy/p8-cxx11.cpp +++ b/clang/test/CXX/special/class.copy/p8-cxx11.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 %s -verify +// expected-no-diagnostics // C++98 [class.copy]p5 / C++11 [class.copy]p8. diff --git a/clang/test/CXX/special/class.ctor/p1.cpp b/clang/test/CXX/special/class.ctor/p1.cpp index 9500a7d2346d..4d821841e47f 100644 --- a/clang/test/CXX/special/class.ctor/p1.cpp +++ b/clang/test/CXX/special/class.ctor/p1.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics struct X0 { struct type { }; diff --git a/clang/test/CXX/special/class.dtor/p2.cpp b/clang/test/CXX/special/class.dtor/p2.cpp index b05c992f4115..4a10eb9e0d0b 100644 --- a/clang/test/CXX/special/class.dtor/p2.cpp +++ b/clang/test/CXX/special/class.dtor/p2.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // PR5548 struct A {~A();}; diff --git a/clang/test/CXX/stmt.stmt/stmt.select/stmt.switch/p2-0x.cpp b/clang/test/CXX/stmt.stmt/stmt.select/stmt.switch/p2-0x.cpp index 000c870d5901..d0f15d4d3df2 100644 --- a/clang/test/CXX/stmt.stmt/stmt.select/stmt.switch/p2-0x.cpp +++ b/clang/test/CXX/stmt.stmt/stmt.select/stmt.switch/p2-0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 %s -verify +// expected-no-diagnostics struct Value { constexpr Value(int n) : n(n) {} diff --git a/clang/test/CXX/temp/temp.arg/temp.arg.type/p2-cxx0x.cpp b/clang/test/CXX/temp/temp.arg/temp.arg.type/p2-cxx0x.cpp index b03ed46e92f0..67f317b01807 100644 --- a/clang/test/CXX/temp/temp.arg/temp.arg.type/p2-cxx0x.cpp +++ b/clang/test/CXX/temp/temp.arg/temp.arg.type/p2-cxx0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s +// expected-no-diagnostics // C++03 imposed restrictions in this paragraph that were lifted with 0x, so we // just test that the example given now parses cleanly. diff --git a/clang/test/CXX/temp/temp.decls/temp.alias/p1.cpp b/clang/test/CXX/temp/temp.decls/temp.alias/p1.cpp index 966e3c10e5de..aafe4808bb18 100644 --- a/clang/test/CXX/temp/temp.decls/temp.alias/p1.cpp +++ b/clang/test/CXX/temp/temp.decls/temp.alias/p1.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics template using U = T; diff --git a/clang/test/CXX/temp/temp.decls/temp.class.spec/p9.cpp b/clang/test/CXX/temp/temp.decls/temp.class.spec/p9.cpp index 2a3e9142169c..df0e68d29b6f 100644 --- a/clang/test/CXX/temp/temp.decls/temp.class.spec/p9.cpp +++ b/clang/test/CXX/temp/temp.decls/temp.class.spec/p9.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // PR8905 template diff --git a/clang/test/CXX/temp/temp.decls/temp.class.spec/temp.class.order/p2.cpp b/clang/test/CXX/temp/temp.decls/temp.class.spec/temp.class.order/p2.cpp index 97457ea213bb..64cc5923f008 100644 --- a/clang/test/CXX/temp/temp.decls/temp.class.spec/temp.class.order/p2.cpp +++ b/clang/test/CXX/temp/temp.decls/temp.class.spec/temp.class.order/p2.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics template struct X { static const int value = 0; }; diff --git a/clang/test/CXX/temp/temp.decls/temp.class.spec/temp.class.spec.mfunc/p1.cpp b/clang/test/CXX/temp/temp.decls/temp.class.spec/temp.class.spec.mfunc/p1.cpp index 87e21e4af845..184160ac78d1 100644 --- a/clang/test/CXX/temp/temp.decls/temp.class.spec/temp.class.spec.mfunc/p1.cpp +++ b/clang/test/CXX/temp/temp.decls/temp.class.spec/temp.class.spec.mfunc/p1.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics template struct A; diff --git a/clang/test/CXX/temp/temp.decls/temp.class/temp.mem.func/p1-retmem.cpp b/clang/test/CXX/temp/temp.decls/temp.class/temp.mem.func/p1-retmem.cpp index 4c05c622926d..213f0c60d5b3 100644 --- a/clang/test/CXX/temp/temp.decls/temp.class/temp.mem.func/p1-retmem.cpp +++ b/clang/test/CXX/temp/temp.decls/temp.class/temp.mem.func/p1-retmem.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics template struct X1 { }; diff --git a/clang/test/CXX/temp/temp.decls/temp.class/temp.mem.func/pr5056.cpp b/clang/test/CXX/temp/temp.decls/temp.class/temp.mem.func/pr5056.cpp index 70c9c70a41c0..fcbb724a7af0 100644 --- a/clang/test/CXX/temp/temp.decls/temp.class/temp.mem.func/pr5056.cpp +++ b/clang/test/CXX/temp/temp.decls/temp.class/temp.mem.func/pr5056.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics extern "C" void * malloc(int); diff --git a/clang/test/CXX/temp/temp.decls/temp.fct/temp.func.order/p3-0x.cpp b/clang/test/CXX/temp/temp.decls/temp.fct/temp.func.order/p3-0x.cpp index 4d566538452f..6d22f8809365 100644 --- a/clang/test/CXX/temp/temp.decls/temp.fct/temp.func.order/p3-0x.cpp +++ b/clang/test/CXX/temp/temp.decls/temp.fct/temp.func.order/p3-0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s +// expected-no-diagnostics // Core DR 532. namespace PR8130 { diff --git a/clang/test/CXX/temp/temp.decls/temp.fct/temp.func.order/p3.cpp b/clang/test/CXX/temp/temp.decls/temp.fct/temp.func.order/p3.cpp index 815f8bfb5670..8212a125be60 100644 --- a/clang/test/CXX/temp/temp.decls/temp.fct/temp.func.order/p3.cpp +++ b/clang/test/CXX/temp/temp.decls/temp.fct/temp.func.order/p3.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics namespace DeduceVsMember { template diff --git a/clang/test/CXX/temp/temp.decls/temp.fct/temp.func.order/p5.cpp b/clang/test/CXX/temp/temp.decls/temp.fct/temp.func.order/p5.cpp index 4d34968d32aa..5f2dbb6018ce 100644 --- a/clang/test/CXX/temp/temp.decls/temp.fct/temp.func.order/p5.cpp +++ b/clang/test/CXX/temp/temp.decls/temp.fct/temp.func.order/p5.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics template int &f(T); template float &f(T*, int=1); diff --git a/clang/test/CXX/temp/temp.decls/temp.fct/temp.over.link/p4.cpp b/clang/test/CXX/temp/temp.decls/temp.fct/temp.over.link/p4.cpp index f42b94a727d2..d24a3fb71d5d 100644 --- a/clang/test/CXX/temp/temp.decls/temp.fct/temp.over.link/p4.cpp +++ b/clang/test/CXX/temp/temp.decls/temp.fct/temp.over.link/p4.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // All of these function templates are distinct. template void f0(T) { } diff --git a/clang/test/CXX/temp/temp.decls/temp.friend/p5.cpp b/clang/test/CXX/temp/temp.decls/temp.friend/p5.cpp index 63fd3df26900..4b899e4e5211 100644 --- a/clang/test/CXX/temp/temp.decls/temp.friend/p5.cpp +++ b/clang/test/CXX/temp/temp.decls/temp.friend/p5.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics namespace test0 { template class A { diff --git a/clang/test/CXX/temp/temp.decls/temp.mem/p1.cpp b/clang/test/CXX/temp/temp.decls/temp.mem/p1.cpp index f5f12055c19e..01eab24757f0 100644 --- a/clang/test/CXX/temp/temp.decls/temp.mem/p1.cpp +++ b/clang/test/CXX/temp/temp.decls/temp.mem/p1.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics template struct A { static T cond; diff --git a/clang/test/CXX/temp/temp.decls/temp.variadic/deduction.cpp b/clang/test/CXX/temp/temp.decls/temp.variadic/deduction.cpp index fec8060955e3..2e24fc00dc1a 100644 --- a/clang/test/CXX/temp/temp.decls/temp.variadic/deduction.cpp +++ b/clang/test/CXX/temp/temp.decls/temp.variadic/deduction.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics namespace DeductionForInstantiation { template diff --git a/clang/test/CXX/temp/temp.decls/temp.variadic/example-bind.cpp b/clang/test/CXX/temp/temp.decls/temp.variadic/example-bind.cpp index db28eea98a54..83e03bcc0ddb 100644 --- a/clang/test/CXX/temp/temp.decls/temp.variadic/example-bind.cpp +++ b/clang/test/CXX/temp/temp.decls/temp.variadic/example-bind.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics // Example bind implementation from the variadic templates proposal, // ISO C++ committee document number N2080. diff --git a/clang/test/CXX/temp/temp.decls/temp.variadic/example-function.cpp b/clang/test/CXX/temp/temp.decls/temp.variadic/example-function.cpp index e15203abc615..4cbacf830266 100644 --- a/clang/test/CXX/temp/temp.decls/temp.variadic/example-function.cpp +++ b/clang/test/CXX/temp/temp.decls/temp.variadic/example-function.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics // Example function implementation from the variadic templates proposal, // ISO C++ committee document number N2080. diff --git a/clang/test/CXX/temp/temp.decls/temp.variadic/example-tuple.cpp b/clang/test/CXX/temp/temp.decls/temp.variadic/example-tuple.cpp index 9de5fa84b48a..f5800471ac2d 100644 --- a/clang/test/CXX/temp/temp.decls/temp.variadic/example-tuple.cpp +++ b/clang/test/CXX/temp/temp.decls/temp.variadic/example-tuple.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics // Example tuple implementation from the variadic templates proposal, // ISO C++ committee document number N2080. diff --git a/clang/test/CXX/temp/temp.decls/temp.variadic/injected-class-name.cpp b/clang/test/CXX/temp/temp.decls/temp.variadic/injected-class-name.cpp index b5786acf82a2..c09c0b243a92 100644 --- a/clang/test/CXX/temp/temp.decls/temp.variadic/injected-class-name.cpp +++ b/clang/test/CXX/temp/temp.decls/temp.variadic/injected-class-name.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics // Check for declaration matching with out-of-line declarations and // variadic templates, which involves proper computation of the diff --git a/clang/test/CXX/temp/temp.decls/temp.variadic/partial-ordering.cpp b/clang/test/CXX/temp/temp.decls/temp.variadic/partial-ordering.cpp index 71bd6aa8eb52..36535e3f90ed 100644 --- a/clang/test/CXX/temp/temp.decls/temp.variadic/partial-ordering.cpp +++ b/clang/test/CXX/temp/temp.decls/temp.variadic/partial-ordering.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics // Various tests related to partial ordering of variadic templates. template struct tuple; diff --git a/clang/test/CXX/temp/temp.fct.spec/temp.arg.explicit/p3-0x.cpp b/clang/test/CXX/temp/temp.fct.spec/temp.arg.explicit/p3-0x.cpp index 4d29b740d803..36b07002cf3d 100644 --- a/clang/test/CXX/temp/temp.fct.spec/temp.arg.explicit/p3-0x.cpp +++ b/clang/test/CXX/temp/temp.fct.spec/temp.arg.explicit/p3-0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics namespace ParameterPacksWithFunctions { template struct count; diff --git a/clang/test/CXX/temp/temp.fct.spec/temp.arg.explicit/p9-0x.cpp b/clang/test/CXX/temp/temp.fct.spec/temp.arg.explicit/p9-0x.cpp index 81addfe4bdcd..a9bda621e98f 100644 --- a/clang/test/CXX/temp/temp.fct.spec/temp.arg.explicit/p9-0x.cpp +++ b/clang/test/CXX/temp/temp.fct.spec/temp.arg.explicit/p9-0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics // Metafunction to extract the Nth type from a set of types. template struct get_nth_type; diff --git a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/cwg1170.cpp b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/cwg1170.cpp index c14b063ab746..47184ec03455 100644 --- a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/cwg1170.cpp +++ b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/cwg1170.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s +// expected-no-diagnostics #if !__has_feature(cxx_access_control_sfinae) # error No support for access control as part of SFINAE? diff --git a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/sfinae-1.cpp b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/sfinae-1.cpp index 6481485b2a08..1907bd77998f 100644 --- a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/sfinae-1.cpp +++ b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/sfinae-1.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -verify %s +// expected-no-diagnostics typedef char one_byte; struct two_bytes { char data[2]; }; diff --git a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.call/p2.cpp b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.call/p2.cpp index c165c4530668..4be81d882588 100644 --- a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.call/p2.cpp +++ b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.call/p2.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics template struct A { }; // bullet 1 diff --git a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.call/p4.cpp b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.call/p4.cpp index 83b5f2314011..132d61814227 100644 --- a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.call/p4.cpp +++ b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.call/p4.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics namespace PR8598 { template struct identity { typedef T type; }; diff --git a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.conv/p2.cpp b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.conv/p2.cpp index 5a9ea084fd61..badd5a8c6a2c 100644 --- a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.conv/p2.cpp +++ b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.conv/p2.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // FIXME: [temp.deduct.conv]p2 bullets 1 and 2 can't actually happen without // references? diff --git a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.conv/p3.cpp b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.conv/p3.cpp index e23e98abe64d..a5916ba65377 100644 --- a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.conv/p3.cpp +++ b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.conv/p3.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics struct AnyPtr { template operator T*() const; diff --git a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.partial/p12.cpp b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.partial/p12.cpp index b96530056b2c..ec7e8970b1b5 100644 --- a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.partial/p12.cpp +++ b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.partial/p12.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics // Note: Partial ordering of function templates containing template // parameter packs is independent of the number of deduced arguments diff --git a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.partial/p9-0x.cpp b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.partial/p9-0x.cpp index f204caf57abd..cc129c0a9b2e 100644 --- a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.partial/p9-0x.cpp +++ b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.partial/p9-0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics template int &f0(T&); template float &f0(T&&); diff --git a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p10-0x.cpp b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p10-0x.cpp index 8183061a8ab4..b38ade39edf2 100644 --- a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p10-0x.cpp +++ b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p10-0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics template void f(T&&); template<> void f(int&) { } void (*fp)(int&) = &f; diff --git a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p2-0x.cpp b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p2-0x.cpp index 5b031c24ed71..e3a9f5798dbf 100644 --- a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p2-0x.cpp +++ b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p2-0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics // If type deduction cannot be done for any P/A pair, or if for any // pair the deduction leads to more than one possible set of deduced diff --git a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p21.cpp b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p21.cpp index 4e98a6d15e1a..20e6ea2d7127 100644 --- a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p21.cpp +++ b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p21.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics // Note: Template argument deduction involving parameter packs // (14.5.3) can deduce zero or more arguments for each parameter pack. diff --git a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p22.cpp b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p22.cpp index fcc6cf7ec732..09b1648e68e7 100644 --- a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p22.cpp +++ b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p22.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics // If the original function parameter associated with A is a function // parameter pack and the function parameter associated with P is not diff --git a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p5-0x.cpp b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p5-0x.cpp index c819d973a941..d239a5e17200 100644 --- a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p5-0x.cpp +++ b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p5-0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics // FIXME: More bullets to go! diff --git a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p8-0x.cpp b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p8-0x.cpp index a6b1172afccc..6ef8e2fd5ecd 100644 --- a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p8-0x.cpp +++ b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p8-0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics // Deductions specific to C++0x. diff --git a/clang/test/CXX/temp/temp.names/p2.cpp b/clang/test/CXX/temp/temp.names/p2.cpp index 93e45dd7e3b0..532dd84ecb43 100644 --- a/clang/test/CXX/temp/temp.names/p2.cpp +++ b/clang/test/CXX/temp/temp.names/p2.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // Ensure that when enforcing access control an unqualified template name with // explicit template arguments, we don't lose the context of the name lookup diff --git a/clang/test/CXX/temp/temp.names/p4.cpp b/clang/test/CXX/temp/temp.names/p4.cpp index 103a1bd537f8..64ca80517b8c 100644 --- a/clang/test/CXX/temp/temp.names/p4.cpp +++ b/clang/test/CXX/temp/temp.names/p4.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics struct meta { template diff --git a/clang/test/CXX/temp/temp.param/p10-0x.cpp b/clang/test/CXX/temp/temp.param/p10-0x.cpp index 37bb284a36eb..21a96bf613e6 100644 --- a/clang/test/CXX/temp/temp.param/p10-0x.cpp +++ b/clang/test/CXX/temp/temp.param/p10-0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s +// expected-no-diagnostics template struct Y1; template struct Y2; diff --git a/clang/test/CXX/temp/temp.param/p10.cpp b/clang/test/CXX/temp/temp.param/p10.cpp index b9dac75beb91..4feea828466e 100644 --- a/clang/test/CXX/temp/temp.param/p10.cpp +++ b/clang/test/CXX/temp/temp.param/p10.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics template struct Y1; template struct Y2; diff --git a/clang/test/CXX/temp/temp.param/p13.cpp b/clang/test/CXX/temp/temp.param/p13.cpp index 7e7dbe58a7b5..257b36f4f96f 100644 --- a/clang/test/CXX/temp/temp.param/p13.cpp +++ b/clang/test/CXX/temp/temp.param/p13.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // The scope of atemplate-parameterextends from its point of // declaration until the end of its template. In particular, a diff --git a/clang/test/CXX/temp/temp.param/p2.cpp b/clang/test/CXX/temp/temp.param/p2.cpp index fed6e9c266be..4eca05774ab5 100644 --- a/clang/test/CXX/temp/temp.param/p2.cpp +++ b/clang/test/CXX/temp/temp.param/p2.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // There is no semantic difference between class and typename in a // template-parameter. typename followed by an unqualified-id names a diff --git a/clang/test/CXX/temp/temp.param/p5.cpp b/clang/test/CXX/temp/temp.param/p5.cpp index 3cbb3b7c0103..67efc4e48162 100644 --- a/clang/test/CXX/temp/temp.param/p5.cpp +++ b/clang/test/CXX/temp/temp.param/p5.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -verify %s -std=c++11 +// expected-no-diagnostics template struct S { decltype(I) n; diff --git a/clang/test/CXX/temp/temp.param/p8.cpp b/clang/test/CXX/temp/temp.param/p8.cpp index fed048cad8b6..592e41ec408e 100644 --- a/clang/test/CXX/temp/temp.param/p8.cpp +++ b/clang/test/CXX/temp/temp.param/p8.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics template struct A; template struct A; template struct B; diff --git a/clang/test/CXX/temp/temp.res/temp.dep/p3.cpp b/clang/test/CXX/temp/temp.res/temp.dep/p3.cpp index c41a4c60ee74..88b4752e6b76 100644 --- a/clang/test/CXX/temp/temp.res/temp.dep/p3.cpp +++ b/clang/test/CXX/temp/temp.res/temp.dep/p3.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics struct A0 { struct K { }; }; diff --git a/clang/test/CXX/temp/temp.res/temp.dep/temp.dep.constexpr/p2-0x.cpp b/clang/test/CXX/temp/temp.res/temp.dep/temp.dep.constexpr/p2-0x.cpp index 0aba4028b769..8f2a599ab28a 100644 --- a/clang/test/CXX/temp/temp.res/temp.dep/temp.dep.constexpr/p2-0x.cpp +++ b/clang/test/CXX/temp/temp.res/temp.dep/temp.dep.constexpr/p2-0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -verify %s +// expected-no-diagnostics template struct S; diff --git a/clang/test/CXX/temp/temp.res/temp.local/p1.cpp b/clang/test/CXX/temp/temp.res/temp.local/p1.cpp index 1ad4464c975c..f6ef636daa56 100644 --- a/clang/test/CXX/temp/temp.res/temp.local/p1.cpp +++ b/clang/test/CXX/temp/temp.res/temp.local/p1.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // C++0x [temp.local]p1: // Like normal (non-template) classes, class templates have an diff --git a/clang/test/CXX/temp/temp.res/temp.local/p7.cpp b/clang/test/CXX/temp/temp.res/temp.local/p7.cpp index bd05e756a19e..3fa9c9952609 100644 --- a/clang/test/CXX/temp/temp.res/temp.local/p7.cpp +++ b/clang/test/CXX/temp/temp.res/temp.local/p7.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics template struct A { int B; diff --git a/clang/test/CXX/temp/temp.res/temp.local/p8.cpp b/clang/test/CXX/temp/temp.res/temp.local/p8.cpp index 5d9d50913f36..fecfed06f109 100644 --- a/clang/test/CXX/temp/temp.res/temp.local/p8.cpp +++ b/clang/test/CXX/temp/temp.res/temp.local/p8.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics namespace N { enum { C }; diff --git a/clang/test/CXX/temp/temp.spec/temp.expl.spec/p1.cpp b/clang/test/CXX/temp/temp.spec/temp.expl.spec/p1.cpp index 3843c0d2c880..263356e949a3 100644 --- a/clang/test/CXX/temp/temp.spec/temp.expl.spec/p1.cpp +++ b/clang/test/CXX/temp/temp.spec/temp.expl.spec/p1.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // This test creates cases where implicit instantiations of various entities // would cause a diagnostic, but provides expliict specializations for those diff --git a/clang/test/CXX/temp/temp.spec/temp.expl.spec/p11.cpp b/clang/test/CXX/temp/temp.spec/temp.expl.spec/p11.cpp index 5fa2f627b009..f03811f35e60 100644 --- a/clang/test/CXX/temp/temp.spec/temp.expl.spec/p11.cpp +++ b/clang/test/CXX/temp/temp.spec/temp.expl.spec/p11.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics template class Array { /* ... */ }; template void sort(Array& v); diff --git a/clang/test/CXX/temp/temp.spec/temp.expl.spec/p9.cpp b/clang/test/CXX/temp/temp.spec/temp.expl.spec/p9.cpp index d4ce01fd6501..10ec66d53994 100644 --- a/clang/test/CXX/temp/temp.spec/temp.expl.spec/p9.cpp +++ b/clang/test/CXX/temp/temp.spec/temp.expl.spec/p9.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics namespace N { template class X { /* ... */ }; diff --git a/clang/test/CXX/temp/temp.spec/temp.explicit/p11.cpp b/clang/test/CXX/temp/temp.spec/temp.explicit/p11.cpp index 4ca54283157b..5363cbe0aedf 100644 --- a/clang/test/CXX/temp/temp.spec/temp.explicit/p11.cpp +++ b/clang/test/CXX/temp/temp.spec/temp.explicit/p11.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics class X { template class Y {}; diff --git a/clang/test/CXX/temp/temp.spec/temp.explicit/p3-0x.cpp b/clang/test/CXX/temp/temp.spec/temp.explicit/p3-0x.cpp index 1028830abe75..146b6b5da80b 100644 --- a/clang/test/CXX/temp/temp.spec/temp.explicit/p3-0x.cpp +++ b/clang/test/CXX/temp/temp.spec/temp.explicit/p3-0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -verify %s +// expected-no-diagnostics // If the name declared in the explicit instantiation is an // unqualified name, the explicit instantiation shall appear in the diff --git a/clang/test/CXX/temp/temp.spec/temp.explicit/p6.cpp b/clang/test/CXX/temp/temp.spec/temp.explicit/p6.cpp index 13822725b5bd..0f5db2119052 100644 --- a/clang/test/CXX/temp/temp.spec/temp.explicit/p6.cpp +++ b/clang/test/CXX/temp/temp.spec/temp.explicit/p6.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics template class Array { /* ... */ }; template void sort(Array& v) { } diff --git a/clang/test/CodeGen/2009-06-01-addrofknr.c b/clang/test/CodeGen/2009-06-01-addrofknr.c index 17d6fdf5d89f..f987e3270c87 100644 --- a/clang/test/CodeGen/2009-06-01-addrofknr.c +++ b/clang/test/CodeGen/2009-06-01-addrofknr.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -o %t -emit-llvm -verify +// expected-no-diagnostics // PR4289 struct funcptr { diff --git a/clang/test/CodeGen/arm-aapcs-zerolength-bitfield.c b/clang/test/CodeGen/arm-aapcs-zerolength-bitfield.c index 140ff6c42436..2855045c1e78 100644 --- a/clang/test/CodeGen/arm-aapcs-zerolength-bitfield.c +++ b/clang/test/CodeGen/arm-aapcs-zerolength-bitfield.c @@ -1,5 +1,6 @@ // REQUIRES: arm-registered-target // RUN: %clang_cc1 -target-abi aapcs -triple armv7-apple-darwin10 %s -verify +// expected-no-diagnostics #include diff --git a/clang/test/CodeGen/arm-apcs-zerolength-bitfield.c b/clang/test/CodeGen/arm-apcs-zerolength-bitfield.c index 049ffae4dc6f..763db65063fc 100644 --- a/clang/test/CodeGen/arm-apcs-zerolength-bitfield.c +++ b/clang/test/CodeGen/arm-apcs-zerolength-bitfield.c @@ -1,5 +1,6 @@ // REQUIRES: arm-registered-target // RUN: %clang_cc1 -target-abi apcs-gnu -triple armv7-apple-darwin10 %s -verify +// expected-no-diagnostics // // Note: gcc forces the alignment to 4 bytes, regardless of the type of the // zero length bitfield. diff --git a/clang/test/CodeGen/func-ptr-cast-decl.c b/clang/test/CodeGen/func-ptr-cast-decl.c index e6307964294a..28364dec9aae 100644 --- a/clang/test/CodeGen/func-ptr-cast-decl.c +++ b/clang/test/CodeGen/func-ptr-cast-decl.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -emit-llvm-only %s -verify +// expected-no-diagnostics // PR5882 int q_sk_num(void *a); diff --git a/clang/test/CodeGenCXX/conversion-operator-base.cpp b/clang/test/CodeGenCXX/conversion-operator-base.cpp index 8fbeadf14916..e62e225a201f 100644 --- a/clang/test/CodeGenCXX/conversion-operator-base.cpp +++ b/clang/test/CodeGenCXX/conversion-operator-base.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -emit-llvm-only %s -verify +// expected-no-diagnostics // PR5730 struct A { operator int(); float y; }; diff --git a/clang/test/CodeGenCXX/copy-assign-synthesis-3.cpp b/clang/test/CodeGenCXX/copy-assign-synthesis-3.cpp index ce4640a7eddb..5469d113357e 100644 --- a/clang/test/CodeGenCXX/copy-assign-synthesis-3.cpp +++ b/clang/test/CodeGenCXX/copy-assign-synthesis-3.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -emit-llvm-only -verify %s +// expected-no-diagnostics struct A { A& operator=(A&); diff --git a/clang/test/CodeGenCXX/dependent-type-member-pointer.cpp b/clang/test/CodeGenCXX/dependent-type-member-pointer.cpp index 41bb5e29d58c..99b8ecd555c7 100644 --- a/clang/test/CodeGenCXX/dependent-type-member-pointer.cpp +++ b/clang/test/CodeGenCXX/dependent-type-member-pointer.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -emit-llvm-only -verify %s +// expected-no-diagnostics // PR7736 template int InitMember(scriptmemberptr); diff --git a/clang/test/CodeGenCXX/enum.cpp b/clang/test/CodeGenCXX/enum.cpp index cfcd264bd347..3985e96ab9fe 100644 --- a/clang/test/CodeGenCXX/enum.cpp +++ b/clang/test/CodeGenCXX/enum.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -emit-llvm-only -verify %s +// expected-no-diagnostics enum A { a } __attribute((packed)); int func(A x) { return x==a; } diff --git a/clang/test/CodeGenCXX/incomplete-types.cpp b/clang/test/CodeGenCXX/incomplete-types.cpp index 1d4f430e5cb5..802ed4628d9e 100644 --- a/clang/test/CodeGenCXX/incomplete-types.cpp +++ b/clang/test/CodeGenCXX/incomplete-types.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -emit-llvm-only -verify +// expected-no-diagnostics // PR5489 template diff --git a/clang/test/CodeGenCXX/instantiate-init-list.cpp b/clang/test/CodeGenCXX/instantiate-init-list.cpp index 49c6f51c7751..e498d2476c01 100644 --- a/clang/test/CodeGenCXX/instantiate-init-list.cpp +++ b/clang/test/CodeGenCXX/instantiate-init-list.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -emit-llvm-only -verify +// expected-no-diagnostics struct F { void (*x)(); diff --git a/clang/test/CodeGenCXX/member-call-parens.cpp b/clang/test/CodeGenCXX/member-call-parens.cpp index 2054137fe941..3def43ebc05d 100644 --- a/clang/test/CodeGenCXX/member-call-parens.cpp +++ b/clang/test/CodeGenCXX/member-call-parens.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -emit-llvm-only -verify %s +// expected-no-diagnostics struct A { int a(); }; typedef int B; diff --git a/clang/test/CodeGenCXX/member-init-struct.cpp b/clang/test/CodeGenCXX/member-init-struct.cpp index 688d92d74b8e..d509b0ebac28 100644 --- a/clang/test/CodeGenCXX/member-init-struct.cpp +++ b/clang/test/CodeGenCXX/member-init-struct.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -emit-llvm-only -verify +// expected-no-diagnostics struct A {int a;}; struct B {float a;}; diff --git a/clang/test/CodeGenCXX/member-init-union.cpp b/clang/test/CodeGenCXX/member-init-union.cpp index 2c50e18b6ffa..be171a365b01 100644 --- a/clang/test/CodeGenCXX/member-init-union.cpp +++ b/clang/test/CodeGenCXX/member-init-union.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -emit-llvm-only -verify +// expected-no-diagnostics union x { int a; diff --git a/clang/test/CodeGenCXX/new-operator-phi.cpp b/clang/test/CodeGenCXX/new-operator-phi.cpp index 49859acf4fa6..641734d223ad 100644 --- a/clang/test/CodeGenCXX/new-operator-phi.cpp +++ b/clang/test/CodeGenCXX/new-operator-phi.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -emit-llvm-only -verify %s +// expected-no-diagnostics // PR5454 #include diff --git a/clang/test/CodeGenCXX/reference-bind-default-argument.cpp b/clang/test/CodeGenCXX/reference-bind-default-argument.cpp index acce962b1953..5cf279f62a18 100644 --- a/clang/test/CodeGenCXX/reference-bind-default-argument.cpp +++ b/clang/test/CodeGenCXX/reference-bind-default-argument.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -emit-llvm-only -verify +// expected-no-diagnostics struct A {}; struct B : A {}; diff --git a/clang/test/CodeGenCXX/reference-init.cpp b/clang/test/CodeGenCXX/reference-init.cpp index 9469c84eb5d0..d47b1f37489c 100644 --- a/clang/test/CodeGenCXX/reference-init.cpp +++ b/clang/test/CodeGenCXX/reference-init.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -emit-llvm-only -verify %s +// expected-no-diagnostics struct XPTParamDescriptor {}; struct nsXPTParamInfo { diff --git a/clang/test/CodeGenCXX/static-assert.cpp b/clang/test/CodeGenCXX/static-assert.cpp index 53dc9a73805f..ff82f6dc5490 100644 --- a/clang/test/CodeGenCXX/static-assert.cpp +++ b/clang/test/CodeGenCXX/static-assert.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -emit-llvm -o - -std=c++11 -verify +// expected-no-diagnostics static_assert(true, ""); diff --git a/clang/test/CodeGenCXX/static-init-2.cpp b/clang/test/CodeGenCXX/static-init-2.cpp index 768e6de92c0f..354fcd4dda53 100644 --- a/clang/test/CodeGenCXX/static-init-2.cpp +++ b/clang/test/CodeGenCXX/static-init-2.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -emit-llvm-only -verify %s +// expected-no-diagnostics // Make sure we don't crash generating y; its value is constant, but the // initializer has side effects, so EmitConstantExpr should fail. diff --git a/clang/test/CodeGenCXX/throw-expression-dtor.cpp b/clang/test/CodeGenCXX/throw-expression-dtor.cpp index 0de6683f88d1..cb4a6c69bddd 100644 --- a/clang/test/CodeGenCXX/throw-expression-dtor.cpp +++ b/clang/test/CodeGenCXX/throw-expression-dtor.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -emit-llvm-only -verify -fcxx-exceptions -fexceptions +// expected-no-diagnostics // PR7281 class A { diff --git a/clang/test/CodeGenCXX/throw-expressions.cpp b/clang/test/CodeGenCXX/throw-expressions.cpp index 2515acb48ee7..f04185b23f1b 100644 --- a/clang/test/CodeGenCXX/throw-expressions.cpp +++ b/clang/test/CodeGenCXX/throw-expressions.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fcxx-exceptions -fexceptions -emit-llvm-only -verify %s -Wno-unreachable-code +// expected-no-diagnostics int val = 42; int& test1() { diff --git a/clang/test/CodeGenCXX/unary-type-trait.cpp b/clang/test/CodeGenCXX/unary-type-trait.cpp index a11c67e12890..3c6f9c03aa41 100644 --- a/clang/test/CodeGenCXX/unary-type-trait.cpp +++ b/clang/test/CodeGenCXX/unary-type-trait.cpp @@ -1,3 +1,4 @@ // RUN: %clang_cc1 -emit-llvm-only -verify %s +// expected-no-diagnostics bool a() { return __is_pod(int); } diff --git a/clang/test/Driver/no-objc-arr.m b/clang/test/Driver/no-objc-arr.m index e44939337a6a..21246a37a6af 100644 --- a/clang/test/Driver/no-objc-arr.m +++ b/clang/test/Driver/no-objc-arr.m @@ -1,4 +1,5 @@ // RUN: %clang -Werror -fobjc-arc -fsyntax-only -fno-objc-arc -Xclang -verify %s +// expected-no-diagnostics // rdar://8949617 void * FOO() { diff --git a/clang/test/Driver/x86_64-nacl-types.cpp b/clang/test/Driver/x86_64-nacl-types.cpp index 2cdc26ddcaad..a994cb75ef66 100644 --- a/clang/test/Driver/x86_64-nacl-types.cpp +++ b/clang/test/Driver/x86_64-nacl-types.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple x86_64-unknown-nacl -std=c++11 -verify %s +// expected-no-diagnostics #include #include diff --git a/clang/test/Frontend/iframework.c b/clang/test/Frontend/iframework.c index 7180416e9985..6f801f2437a2 100644 --- a/clang/test/Frontend/iframework.c +++ b/clang/test/Frontend/iframework.c @@ -1,3 +1,4 @@ // RUN: %clang -fsyntax-only -iframework %S/Inputs %s -Xclang -verify +// expected-no-diagnostics #include diff --git a/clang/test/Frontend/macros.c b/clang/test/Frontend/macros.c index 828c76284034..68f220339dbf 100644 --- a/clang/test/Frontend/macros.c +++ b/clang/test/Frontend/macros.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -DA= -DB=1 -verify -fsyntax-only %s +// expected-no-diagnostics int a[(B A) == 1 ? 1 : -1]; diff --git a/clang/test/Frontend/unknown-pragmas.c b/clang/test/Frontend/unknown-pragmas.c index 53a5a45a4337..eea025ceeea9 100644 --- a/clang/test/Frontend/unknown-pragmas.c +++ b/clang/test/Frontend/unknown-pragmas.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -Eonly -Wall -verify %s // RUN: %clang_cc1 -E -dM -Wall -verify %s +// expected-no-diagnostics #pragma adgohweopihweotnwet diff --git a/clang/test/Frontend/warning-mapping-1.c b/clang/test/Frontend/warning-mapping-1.c index 883dafb1f500..623e5e3933a2 100644 --- a/clang/test/Frontend/warning-mapping-1.c +++ b/clang/test/Frontend/warning-mapping-1.c @@ -1,5 +1,6 @@ // Check that -w has higher priority than -Werror. // RUN: %clang_cc1 -verify -Wsign-compare -Werror -w %s +// expected-no-diagnostics int f0(int x, unsigned y) { return x < y; diff --git a/clang/test/Frontend/warning-mapping-4.c b/clang/test/Frontend/warning-mapping-4.c index d8d2769fc535..6644042e24ee 100644 --- a/clang/test/Frontend/warning-mapping-4.c +++ b/clang/test/Frontend/warning-mapping-4.c @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -verify -Wno-error=sign-compare %s // RUN: %clang_cc1 -verify -Wsign-compare -w -Wno-error=sign-compare %s +// expected-no-diagnostics int f0(int x, unsigned y) { return x < y; diff --git a/clang/test/Headers/c89.c b/clang/test/Headers/c89.c index eea8d44d8dce..acf01b40e06e 100644 --- a/clang/test/Headers/c89.c +++ b/clang/test/Headers/c89.c @@ -1,4 +1,5 @@ // RUN: %clang -target i386-apple-darwin10 -fsyntax-only -Xclang -verify -std=c89 %s +// expected-no-diagnostics // FIXME: Disable inclusion of mm_malloc.h, our current implementation is broken // on win32 since we don't generally know how to find errno.h. diff --git a/clang/test/Headers/int64-type.c b/clang/test/Headers/int64-type.c index 16b42d2d7f8f..442f8a0cc230 100644 --- a/clang/test/Headers/int64-type.c +++ b/clang/test/Headers/int64-type.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -verify %s -ffreestanding +// expected-no-diagnostics #include typedef unsigned long long uint64_t; diff --git a/clang/test/Headers/typedef_guards.c b/clang/test/Headers/typedef_guards.c index 646b2ca0efe8..968b26d8c731 100644 --- a/clang/test/Headers/typedef_guards.c +++ b/clang/test/Headers/typedef_guards.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // NULL is rdefined in stddef.h #define NULL ((void*) 0) diff --git a/clang/test/Headers/wchar_limits.cpp b/clang/test/Headers/wchar_limits.cpp index 93a99ad78f2b..35ae7affb514 100644 --- a/clang/test/Headers/wchar_limits.cpp +++ b/clang/test/Headers/wchar_limits.cpp @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -ffreestanding -fsyntax-only -verify %s // RUN: %clang_cc1 -ffreestanding -fsyntax-only -verify -fshort-wchar %s +// expected-no-diagnostics #include diff --git a/clang/test/Headers/wmmintrin.c b/clang/test/Headers/wmmintrin.c index 6aa8be49881a..8cabbf066388 100644 --- a/clang/test/Headers/wmmintrin.c +++ b/clang/test/Headers/wmmintrin.c @@ -1,4 +1,5 @@ // Check that wmmintrin.h is includable with just -maes. // RUN: %clang_cc1 -triple x86_64-unknown-unknown \ // RUN: -verify %s -ffreestanding -target-feature +aes +// expected-no-diagnostics #include diff --git a/clang/test/Lexer/clang-keywords.cpp b/clang/test/Lexer/clang-keywords.cpp index a349b44ade20..3a24dce981a3 100644 --- a/clang/test/Lexer/clang-keywords.cpp +++ b/clang/test/Lexer/clang-keywords.cpp @@ -1,3 +1,4 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics __char16_t c16; void f(__char32_t) { } diff --git a/clang/test/Lexer/digraph.c b/clang/test/Lexer/digraph.c index cf6e4789afa8..e940caf44f4b 100644 --- a/clang/test/Lexer/digraph.c +++ b/clang/test/Lexer/digraph.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -ffreestanding %s +// expected-no-diagnostics %:include diff --git a/clang/test/Lexer/gnu_keywords.c b/clang/test/Lexer/gnu_keywords.c index c4bd9b3e59d6..10a7d31d2038 100644 --- a/clang/test/Lexer/gnu_keywords.c +++ b/clang/test/Lexer/gnu_keywords.c @@ -2,6 +2,7 @@ // RUN: %clang_cc1 -DGNU_KEYWORDS -std=c99 -fgnu-keywords -fsyntax-only -verify %s // RUN: %clang_cc1 -std=c99 -fsyntax-only -verify %s // RUN: %clang_cc1 -std=gnu89 -fno-gnu-keywords -fsyntax-only -verify %s +// expected-no-diagnostics void f() { #ifdef GNU_KEYWORDS diff --git a/clang/test/Lexer/long-long.cpp b/clang/test/Lexer/long-long.cpp index c3f371d17f0e..1a0f37b7ff40 100644 --- a/clang/test/Lexer/long-long.cpp +++ b/clang/test/Lexer/long-long.cpp @@ -6,13 +6,15 @@ #if !defined(__cplusplus) # if __STDC_VERSION__ < 199901L -/* expected-error@19 {{'long long' is an extension when C99 mode is not enabled}} */ +/* expected-error@21 {{'long long' is an extension when C99 mode is not enabled}} */ +# else +/* expected-no-diagnostics */ # endif #else # if __cplusplus < 201103L -/* expected-error@19 {{'long long' is a C++11 extension}} */ +/* expected-error@21 {{'long long' is a C++11 extension}} */ # else -/* expected-warning@19 {{'long long' is incompatible with C++98}} */ +/* expected-warning@21 {{'long long' is incompatible with C++98}} */ # endif #endif diff --git a/clang/test/Lexer/msdos-cpm-eof.c b/clang/test/Lexer/msdos-cpm-eof.c index 9ef6e32ea0b4..3469b59d4089 100644 --- a/clang/test/Lexer/msdos-cpm-eof.c +++ b/clang/test/Lexer/msdos-cpm-eof.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -fms-extensions %s +// expected-no-diagnostics int x; diff --git a/clang/test/Lexer/newline-eof-c++11.cpp b/clang/test/Lexer/newline-eof-c++11.cpp index 3c45f28336f5..eeabe8bb9fc3 100644 --- a/clang/test/Lexer/newline-eof-c++11.cpp +++ b/clang/test/Lexer/newline-eof-c++11.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -std=c++11 -Wnewline-eof -verify %s +// expected-no-diagnostics // The following line isn't terminated, don't fix it. void foo() {} \ No newline at end of file diff --git a/clang/test/Lexer/numeric-literal-trash.c b/clang/test/Lexer/numeric-literal-trash.c index 5407ba9824f7..60981feee16b 100644 --- a/clang/test/Lexer/numeric-literal-trash.c +++ b/clang/test/Lexer/numeric-literal-trash.c @@ -1,5 +1,5 @@ /* RUN: %clang_cc1 -fsyntax-only -verify %s - */ + * expected-no-diagnostics */ # define XRECORD(x, c_name) e##c (x, __LINE__) diff --git a/clang/test/Lexer/pragma-mark.c b/clang/test/Lexer/pragma-mark.c index 96e8485a70ac..e58b2267ddbc 100644 --- a/clang/test/Lexer/pragma-mark.c +++ b/clang/test/Lexer/pragma-mark.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -fsyntax-only -verify +// expected-no-diagnostics // Lexer diagnostics shouldn't be included in #pragma mark. #pragma mark Mike's world diff --git a/clang/test/Lexer/rdr-6096838.c b/clang/test/Lexer/rdr-6096838.c index d1426cca14aa..b77b95e79613 100644 --- a/clang/test/Lexer/rdr-6096838.c +++ b/clang/test/Lexer/rdr-6096838.c @@ -2,5 +2,6 @@ * RUN: %clang_cc1 -triple x86_64-unknown-unknown -std=gnu89 -fsyntax-only -verify %s rdar://6096838 */ +// expected-no-diagnostics long double d = 0x0.0000003ffffffff00000p-16357L; diff --git a/clang/test/Misc/predefines.c b/clang/test/Misc/predefines.c index 87f676e89fc4..63944b03d8f9 100644 --- a/clang/test/Misc/predefines.c +++ b/clang/test/Misc/predefines.c @@ -1,4 +1,5 @@ /* RUN: %clang_cc1 -fsyntax-only -verify -std=c89 -ffreestanding -pedantic-errors %s + * expected-no-diagnostics * rdar://6814950 */ #include diff --git a/clang/test/Modules/Inputs/lookup_right.hpp b/clang/test/Modules/Inputs/lookup_right.hpp index 884534747f69..b2611a1380cc 100644 --- a/clang/test/Modules/Inputs/lookup_right.hpp +++ b/clang/test/Modules/Inputs/lookup_right.hpp @@ -1 +1,2 @@ float *f0(float*); +// expected-no-diagnostics diff --git a/clang/test/Modules/compiler_builtins.m b/clang/test/Modules/compiler_builtins.m index de6f57b5f285..d974dae52e03 100644 --- a/clang/test/Modules/compiler_builtins.m +++ b/clang/test/Modules/compiler_builtins.m @@ -1,5 +1,6 @@ // RUN: rm -rf %t // RUN: %clang -fsyntax-only -fmodules -fmodule-cache-path %t -D__need_wint_t %s -Xclang -verify +// expected-no-diagnostics #ifdef __SSE__ @__experimental_modules_import _Builtin_intrinsics.intel.sse; diff --git a/clang/test/Modules/header-import.m b/clang/test/Modules/header-import.m index 5444854a62bf..49549d0c671a 100644 --- a/clang/test/Modules/header-import.m +++ b/clang/test/Modules/header-import.m @@ -1,5 +1,6 @@ // RUN: rm -rf %t // RUN: %clang_cc1 -fmodules -fmodule-cache-path %t -F %S/Inputs -I %S/Inputs -verify %s +// expected-no-diagnostics #import "point.h" @__experimental_modules_import Module; diff --git a/clang/test/Modules/inferred-submodules.m b/clang/test/Modules/inferred-submodules.m index bee1cec98e44..8c61bc081c2d 100644 --- a/clang/test/Modules/inferred-submodules.m +++ b/clang/test/Modules/inferred-submodules.m @@ -1,5 +1,6 @@ // RUN: rm -rf %t // RUN: %clang_cc1 -x objective-c -Wauto-import -fmodule-cache-path %t -fmodules -F %S/Inputs %s -verify +// expected-no-diagnostics @__experimental_modules_import Module.Sub; diff --git a/clang/test/Modules/on-demand-macros.m b/clang/test/Modules/on-demand-macros.m index 2b8c5456eb65..8b50529f1a28 100644 --- a/clang/test/Modules/on-demand-macros.m +++ b/clang/test/Modules/on-demand-macros.m @@ -1,6 +1,7 @@ // RUN: rm -rf %t // RUN: %clang_cc1 -fmodules -fmodule-cache-path %t -F %S/Inputs -DFOO_RETURNS_INT_PTR -verify %s // RUN: %clang_cc1 -fmodules -fmodule-cache-path %t -F %S/Inputs -verify %s +// expected-no-diagnostics @__experimental_modules_import CmdLine; diff --git a/clang/test/Modules/redeclarations.m b/clang/test/Modules/redeclarations.m index 3f3e6954cc2c..221e154cb274 100644 --- a/clang/test/Modules/redeclarations.m +++ b/clang/test/Modules/redeclarations.m @@ -8,4 +8,5 @@ // RUN: %clang_cc1 -fmodules -x objective-c -fmodule-cache-path %t -emit-module -fmodule-name=redeclarations_left %S/Inputs/module.map // RUN: %clang_cc1 -fmodules -x objective-c -fmodule-cache-path %t -emit-module -fmodule-name=redeclarations_right %S/Inputs/module.map // RUN: %clang_cc1 -fmodules -fmodule-cache-path %t %s -verify +// expected-no-diagnostics diff --git a/clang/test/Modules/submodules.m b/clang/test/Modules/submodules.m index e014bead73b2..a758abc248dd 100644 --- a/clang/test/Modules/submodules.m +++ b/clang/test/Modules/submodules.m @@ -1,6 +1,7 @@ // RUN: rm -rf %t // RUN: %clang_cc1 -Wauto-import -fmodule-cache-path %t -fmodules -F %S/Inputs %s -verify +// expected-no-diagnostics // Note: transitively imports Module.Sub2. @__experimental_modules_import Module.Sub; diff --git a/clang/test/Modules/templates.mm b/clang/test/Modules/templates.mm index e2d762c11e53..45417401d86f 100644 --- a/clang/test/Modules/templates.mm +++ b/clang/test/Modules/templates.mm @@ -1,6 +1,7 @@ // RUN: rm -rf %t // RUN: %clang_cc1 -x objective-c++ -fmodules -fmodule-cache-path %t -I %S/Inputs -verify %s -Wno-objc-root-class // RUN: %clang_cc1 -x objective-c++ -fmodules -fmodule-cache-path %t -I %S/Inputs -emit-llvm %s -o - -Wno-objc-root-class | grep Emit | FileCheck %s +// expected-no-diagnostics @__experimental_modules_import templates_left; @__experimental_modules_import templates_right; diff --git a/clang/test/PCH/__va_list_tag.c b/clang/test/PCH/__va_list_tag.c index 23c54ea8fb8e..efe5c1b36630 100644 --- a/clang/test/PCH/__va_list_tag.c +++ b/clang/test/PCH/__va_list_tag.c @@ -7,6 +7,8 @@ // RUN: %clang_cc1 -triple=x86_64-unknown-freebsd7.0 -emit-pch -x c-header -o %t %S/Inputs/__va_list_tag.h // RUN: %clang_cc1 -triple=x86_64-unknown-freebsd7.0 -include-pch %t %s -verify +// expected-no-diagnostics + int myvprintf(const char *fmt, va_list args) { return myvfprintf(fmt, args); } diff --git a/clang/test/PCH/asm.c b/clang/test/PCH/asm.c index 99bc14dc2fb4..160829b7a6e7 100644 --- a/clang/test/PCH/asm.c +++ b/clang/test/PCH/asm.c @@ -5,6 +5,7 @@ // RUN: %clang_cc1 -triple i386-unknown-unknown -emit-pch -o %t %S/asm.h // RUN: %clang_cc1 -triple i386-unknown-unknown -include-pch %t -fsyntax-only -verify %s +// expected-no-diagnostics void call_f(void) { f(); } diff --git a/clang/test/PCH/builtins.c b/clang/test/PCH/builtins.c index eed2224d415f..da9eef7496cd 100644 --- a/clang/test/PCH/builtins.c +++ b/clang/test/PCH/builtins.c @@ -5,6 +5,8 @@ // RUN: %clang_cc1 -emit-pch -o %t %S/builtins.h // RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s +// expected-no-diagnostics + void hello() { printf("Hello, World!"); } diff --git a/clang/test/PCH/chain-categories.m b/clang/test/PCH/chain-categories.m index 1b91c732b4d0..7836e09d88fe 100644 --- a/clang/test/PCH/chain-categories.m +++ b/clang/test/PCH/chain-categories.m @@ -4,6 +4,8 @@ // With PCH // RUN: %clang_cc1 -fsyntax-only -verify %s -chain-include %s -chain-include %s +// expected-no-diagnostics + #ifndef HEADER1 #define HEADER1 //===----------------------------------------------------------------------===// diff --git a/clang/test/PCH/chain-class-extension.m b/clang/test/PCH/chain-class-extension.m index c99d6d43ae5e..03fdee70b850 100644 --- a/clang/test/PCH/chain-class-extension.m +++ b/clang/test/PCH/chain-class-extension.m @@ -4,6 +4,8 @@ // With PCH // RUN: %clang_cc1 -fsyntax-only -verify -triple x86_64-apple-darwin10 -fobjc-arc %s -chain-include %s -chain-include %s +// expected-no-diagnostics + #ifndef HEADER1 #define HEADER1 //===----------------------------------------------------------------------===// diff --git a/clang/test/PCH/chain-cxx.cpp b/clang/test/PCH/chain-cxx.cpp index 0d50e61c5a95..4b64f51143df 100644 --- a/clang/test/PCH/chain-cxx.cpp +++ b/clang/test/PCH/chain-cxx.cpp @@ -6,6 +6,8 @@ // With PCH // RUN: %clang_cc1 -fsyntax-only -verify %s -chain-include %s -chain-include %s +// expected-no-diagnostics + #ifndef HEADER1 #define HEADER1 //===----------------------------------------------------------------------===// diff --git a/clang/test/PCH/chain-decls.c b/clang/test/PCH/chain-decls.c index f5724c4c1343..bffa09228f90 100644 --- a/clang/test/PCH/chain-decls.c +++ b/clang/test/PCH/chain-decls.c @@ -7,6 +7,8 @@ // RUN: %clang_cc1 -include-pch %t2 -fsyntax-only -verify %s // RUN: %clang_cc1 -ast-print -include-pch %t2 %s | FileCheck %s +// expected-no-diagnostics + // CHECK: void f(); // CHECK: void g(); diff --git a/clang/test/PCH/chain-macro.c b/clang/test/PCH/chain-macro.c index 18356f75a0e2..b0fd63de46d5 100644 --- a/clang/test/PCH/chain-macro.c +++ b/clang/test/PCH/chain-macro.c @@ -2,6 +2,7 @@ // RUN: %clang_cc1 -emit-pch -o %t2 -detailed-preprocessing-record %S/Inputs/chain-macro2.h -include-pch %t1 // RUN: %clang_cc1 -fsyntax-only -verify -include-pch %t2 %s // RUN: %clang_cc1 -ast-print -include-pch %t2 %s | FileCheck %s +// expected-no-diagnostics // CHECK: void f(); FOOBAR diff --git a/clang/test/PCH/chain-remap-types.m b/clang/test/PCH/chain-remap-types.m index 585da4486502..13f2e39b148d 100644 --- a/clang/test/PCH/chain-remap-types.m +++ b/clang/test/PCH/chain-remap-types.m @@ -2,6 +2,7 @@ // RUN: %clang_cc1 -emit-pch -x objective-c-header -o %t2 %S/Inputs/chain-remap-types2.h -include-pch %t1 // RUN: %clang_cc1 -include-pch %t2 -fsyntax-only -verify %s // RUN: %clang_cc1 -ast-print -include-pch %t2 %s | FileCheck %s +// expected-no-diagnostics // CHECK: @class X; // CHECK: struct Y diff --git a/clang/test/PCH/cmdline-include.c b/clang/test/PCH/cmdline-include.c index ad4519279ae3..556c28ea0f5a 100644 --- a/clang/test/PCH/cmdline-include.c +++ b/clang/test/PCH/cmdline-include.c @@ -2,5 +2,6 @@ // RUN: %clang_cc1 %s -include-pch %t -fsyntax-only -verify // RUN: %clang_cc1 -x c-header %S/cmdline-include1.h -emit-pch -o %t // RUN: %clang_cc1 %s -include-pch %t -include %S/cmdline-include2.h -fsyntax-only -verify +// expected-no-diagnostics int g = x1 + x2; diff --git a/clang/test/PCH/cxx-exprs.cpp b/clang/test/PCH/cxx-exprs.cpp index 9cd31941e356..b7707e0b9347 100644 --- a/clang/test/PCH/cxx-exprs.cpp +++ b/clang/test/PCH/cxx-exprs.cpp @@ -5,6 +5,8 @@ // RUN: %clang_cc1 -std=c++11 -emit-pch -o %t %s // RUN: %clang_cc1 -include-pch %t -verify -std=c++11 %s +// expected-no-diagnostics + #ifndef HEADER #define HEADER diff --git a/clang/test/PCH/cxx-friends.cpp b/clang/test/PCH/cxx-friends.cpp index bdba42bbcb51..f7d45cea8df4 100644 --- a/clang/test/PCH/cxx-friends.cpp +++ b/clang/test/PCH/cxx-friends.cpp @@ -5,6 +5,8 @@ // RUN: %clang_cc1 -x c++-header -emit-pch -o %t %S/cxx-friends.h // RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s +// expected-no-diagnostics + class F { void m() { A* a; diff --git a/clang/test/PCH/cxx-functions.cpp b/clang/test/PCH/cxx-functions.cpp index 74df01a094b3..3b4fe77c044a 100644 --- a/clang/test/PCH/cxx-functions.cpp +++ b/clang/test/PCH/cxx-functions.cpp @@ -4,6 +4,8 @@ // RUN: %clang_cc1 -x c++-header -emit-pch -o %t %S/cxx-functions.h // RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s +// expected-no-diagnostics + void test_foo() { foo(); diff --git a/clang/test/PCH/cxx-implicit-moves.cpp b/clang/test/PCH/cxx-implicit-moves.cpp index ccdc874cb1fa..ff6322d49d68 100644 --- a/clang/test/PCH/cxx-implicit-moves.cpp +++ b/clang/test/PCH/cxx-implicit-moves.cpp @@ -1,6 +1,7 @@ // Test with PCH // RUN: %clang_cc1 -std=c++11 -x c++-header -emit-pch -o %t %s // RUN: %clang_cc1 -std=c++11 -include-pch %t -verify %s +// expected-no-diagnostics // PR10847 #ifndef HEADER diff --git a/clang/test/PCH/cxx-method.cpp b/clang/test/PCH/cxx-method.cpp index 6ec65b248618..40490ea681fa 100644 --- a/clang/test/PCH/cxx-method.cpp +++ b/clang/test/PCH/cxx-method.cpp @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -x c++ -emit-pch %S/Inputs/cxx-method.h -o %t // RUN: %clang_cc1 -include-pch %t -verify %s +// expected-no-diagnostics void S::m(int x) { } diff --git a/clang/test/PCH/cxx-ms-function-specialization-class-scope.cpp b/clang/test/PCH/cxx-ms-function-specialization-class-scope.cpp index 1803a11b96b8..afbb80b7376e 100644 --- a/clang/test/PCH/cxx-ms-function-specialization-class-scope.cpp +++ b/clang/test/PCH/cxx-ms-function-specialization-class-scope.cpp @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -fms-extensions -triple i386-unknown-unknown -x c++-header -emit-pch -o %t %S/cxx-ms-function-specialization-class-scope.h // RUN: %clang_cc1 -fms-extensions -triple i386-unknown-unknown -include-pch %t -fsyntax-only -verify %s +// expected-no-diagnostics void test2() diff --git a/clang/test/PCH/cxx-namespaces.cpp b/clang/test/PCH/cxx-namespaces.cpp index 0fd3de7f6c88..e0ff27c020c4 100644 --- a/clang/test/PCH/cxx-namespaces.cpp +++ b/clang/test/PCH/cxx-namespaces.cpp @@ -5,6 +5,8 @@ // RUN: %clang_cc1 -x c++-header -emit-pch -o %t %S/cxx-namespaces.h // RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s +// expected-no-diagnostics + void m() { N::x = 0; } diff --git a/clang/test/PCH/cxx-templates.cpp b/clang/test/PCH/cxx-templates.cpp index 6312ca97882e..d27e9ca93c43 100644 --- a/clang/test/PCH/cxx-templates.cpp +++ b/clang/test/PCH/cxx-templates.cpp @@ -7,6 +7,8 @@ // RUN: %clang_cc1 -std=c++11 -fcxx-exceptions -fexceptions -include-pch %t -verify %s -ast-dump -o - // RUN: %clang_cc1 -std=c++11 -fcxx-exceptions -fexceptions -include-pch %t %s -emit-llvm -o - | FileCheck %s +// expected-no-diagnostics + // CHECK: define weak_odr void @_ZN2S4IiE1mEv // CHECK: define linkonce_odr void @_ZN2S3IiE1mEv diff --git a/clang/test/PCH/cxx-traits.cpp b/clang/test/PCH/cxx-traits.cpp index 3df34794f2e2..938f36f2c279 100644 --- a/clang/test/PCH/cxx-traits.cpp +++ b/clang/test/PCH/cxx-traits.cpp @@ -4,6 +4,8 @@ // RUN: %clang_cc1 -x c++-header -std=c++11 -emit-pch -o %t %S/cxx-traits.h // RUN: %clang_cc1 -std=c++11 -include-pch %t -fsyntax-only -verify %s +// expected-no-diagnostics + bool _Is_pod_comparator = __is_pod::__value; bool _Is_empty_check = __is_empty::__value; diff --git a/clang/test/PCH/cxx-typeid.cpp b/clang/test/PCH/cxx-typeid.cpp index 41dd544807ea..d1e0f9ded751 100644 --- a/clang/test/PCH/cxx-typeid.cpp +++ b/clang/test/PCH/cxx-typeid.cpp @@ -4,6 +4,8 @@ // RUN: %clang -ccc-pch-is-pch -x c++-header -o %t.gch %S/cxx-typeid.h // RUN: %clang -ccc-pch-is-pch -include %t -fsyntax-only -Xclang -verify %s +// expected-no-diagnostics + void f() { (void)typeid(int); } diff --git a/clang/test/PCH/cxx-variadic-templates.cpp b/clang/test/PCH/cxx-variadic-templates.cpp index c78a1a57047c..dc00758aa520 100644 --- a/clang/test/PCH/cxx-variadic-templates.cpp +++ b/clang/test/PCH/cxx-variadic-templates.cpp @@ -7,6 +7,8 @@ // RUN: %clang_cc1 -std=c++11 -include-pch %t -verify %s -ast-dump -o - // RUN: %clang_cc1 -std=c++11 -include-pch %t %s -emit-llvm -o - | FileCheck %s +// expected-no-diagnostics + // CHECK: allocate_shared shared_ptr spi = shared_ptr::allocate_shared(1, 2); diff --git a/clang/test/PCH/cxx11-exception-spec.cpp b/clang/test/PCH/cxx11-exception-spec.cpp index 3fca4e48acf8..446619ed1c94 100644 --- a/clang/test/PCH/cxx11-exception-spec.cpp +++ b/clang/test/PCH/cxx11-exception-spec.cpp @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -pedantic-errors -std=c++11 -emit-pch %s -o %t // RUN: %clang_cc1 -pedantic-errors -std=c++11 -include-pch %t -verify %s +// expected-no-diagnostics #ifndef HEADER_INCLUDED diff --git a/clang/test/PCH/cxx_exprs.cpp b/clang/test/PCH/cxx_exprs.cpp index 01fc33a9a844..0fb7590c68b5 100644 --- a/clang/test/PCH/cxx_exprs.cpp +++ b/clang/test/PCH/cxx_exprs.cpp @@ -5,6 +5,8 @@ // RUN: %clang_cc1 -fcxx-exceptions -fexceptions -x c++-header -std=c++11 -emit-pch -o %t %S/cxx_exprs.h // RUN: %clang_cc1 -fcxx-exceptions -fexceptions -std=c++11 -include-pch %t -fsyntax-only -verify %s -ast-dump +// expected-no-diagnostics + int integer; double floating; char character; diff --git a/clang/test/PCH/enum.c b/clang/test/PCH/enum.c index 10ceb7c60b0a..81dbd907ac78 100644 --- a/clang/test/PCH/enum.c +++ b/clang/test/PCH/enum.c @@ -5,6 +5,8 @@ // RUN: %clang_cc1 -emit-pch -o %t %S/enum.h // RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s +// expected-no-diagnostics + int i = Red; int return_enum_constant() { diff --git a/clang/test/PCH/exprs.c b/clang/test/PCH/exprs.c index 5928abda58f3..c0b279f88a38 100644 --- a/clang/test/PCH/exprs.c +++ b/clang/test/PCH/exprs.c @@ -3,7 +3,11 @@ // Test with pch. // RUN: %clang_cc1 -emit-pch -fblocks -o %t %S/exprs.h -// RUN: %clang_cc1 -fblocks -include-pch %t -fsyntax-only -verify %s +// RUN: %clang_cc1 -fblocks -include-pch %t -fsyntax-only -verify %s -DWITH_PCH + +#ifdef WITH_PCH +// expected-no-diagnostics +#endif __SIZE_TYPE__ size_type_value; int integer; diff --git a/clang/test/PCH/objc_container.m b/clang/test/PCH/objc_container.m index 1e59054a2e54..ad7a6c3138fb 100644 --- a/clang/test/PCH/objc_container.m +++ b/clang/test/PCH/objc_container.m @@ -7,6 +7,8 @@ // RUN: %clang -cc1 -include-pch %t -ast-print %s | FileCheck -check-prefix=PRINT %s // RUN: %clang -cc1 -include-pch %t -emit-llvm -o - %s | FileCheck -check-prefix=IR %s +// expected-no-diagnostics + // CHECK-PRINT: id oldObject = array[10]; // CHECK-PRINT: array[10] = oldObject; // CHECK-PRINT: oldObject = dictionary[key]; diff --git a/clang/test/PCH/objc_import.m b/clang/test/PCH/objc_import.m index 277c6dd6c2f0..c7dd805b3e47 100644 --- a/clang/test/PCH/objc_import.m +++ b/clang/test/PCH/objc_import.m @@ -5,6 +5,8 @@ // RUN: %clang_cc1 -x objective-c -emit-pch -o %t %S/objc_import.h // RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s +// expected-no-diagnostics + #import "objc_import.h" void func() { diff --git a/clang/test/PCH/objc_literals.m b/clang/test/PCH/objc_literals.m index cce3173bba02..c1220f80b5ab 100644 --- a/clang/test/PCH/objc_literals.m +++ b/clang/test/PCH/objc_literals.m @@ -3,6 +3,8 @@ // RUN: %clang -cc1 -include-pch %t -ast-print %s | FileCheck -check-prefix=PRINT %s // RUN: %clang -cc1 -include-pch %t -emit-llvm -o - %s | FileCheck -check-prefix=IR %s +// expected-no-diagnostics + #ifndef HEADER #define HEADER diff --git a/clang/test/PCH/objc_literals.mm b/clang/test/PCH/objc_literals.mm index 8ef335115030..e41daddb8b5e 100644 --- a/clang/test/PCH/objc_literals.mm +++ b/clang/test/PCH/objc_literals.mm @@ -3,6 +3,8 @@ // RUN: %clang -cc1 -include-pch %t -x objective-c++ -std=c++0x -ast-print %s | FileCheck -check-prefix=PRINT %s // RUN: %clang -cc1 -include-pch %t -x objective-c++ -std=c++0x -emit-llvm -o - %s | FileCheck -check-prefix=IR %s +// expected-no-diagnostics + #ifndef HEADER #define HEADER diff --git a/clang/test/PCH/objc_methods.m b/clang/test/PCH/objc_methods.m index e8aab843dc51..ea40460fb8df 100644 --- a/clang/test/PCH/objc_methods.m +++ b/clang/test/PCH/objc_methods.m @@ -5,6 +5,8 @@ // RUN: %clang_cc1 -x objective-c -emit-pch -o %t %S/objc_methods.h // RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s +// expected-no-diagnostics + void func() { TestPCH *xx; TestForwardClassDecl *yy; diff --git a/clang/test/PCH/objc_property.m b/clang/test/PCH/objc_property.m index b51cd90927ae..88a091928050 100644 --- a/clang/test/PCH/objc_property.m +++ b/clang/test/PCH/objc_property.m @@ -5,6 +5,8 @@ // RUN: %clang_cc1 -x objective-c -emit-pch -o %t %S/objc_property.h // RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s +// expected-no-diagnostics + void func() { TestProperties *xx = [TestProperties alloc]; xx.value = 5; diff --git a/clang/test/PCH/pending-ids.m b/clang/test/PCH/pending-ids.m index b612d89e9452..2ca0e6e93568 100644 --- a/clang/test/PCH/pending-ids.m +++ b/clang/test/PCH/pending-ids.m @@ -7,6 +7,8 @@ // RUN: %clang_cc1 %s -emit-pch -o %t // RUN: %clang_cc1 -emit-llvm-only -verify %s -include-pch %t -g +// expected-no-diagnostics + #ifndef HEADER #define HEADER //===----------------------------------------------------------------------===// diff --git a/clang/test/PCH/pragma-diag-section.cpp b/clang/test/PCH/pragma-diag-section.cpp index 5b996bb2f0d1..103b252416d6 100644 --- a/clang/test/PCH/pragma-diag-section.cpp +++ b/clang/test/PCH/pragma-diag-section.cpp @@ -5,6 +5,8 @@ // RUN: %clang_cc1 %s -emit-pch -o %t // RUN: %clang_cc1 %s -include-pch %t -verify -fsyntax-only +// expected-no-diagnostics + #ifndef HEADER #define HEADER diff --git a/clang/test/PCH/pragma-diag.c b/clang/test/PCH/pragma-diag.c index b304c4bf8c35..601c940cee9b 100644 --- a/clang/test/PCH/pragma-diag.c +++ b/clang/test/PCH/pragma-diag.c @@ -5,6 +5,8 @@ // RUN: %clang_cc1 %s -emit-pch -o %t // RUN: %clang_cc1 %s -include-pch %t -verify -fsyntax-only +// expected-no-diagnostics + #ifndef HEADER #define HEADER diff --git a/clang/test/PCH/rdar8852495.c b/clang/test/PCH/rdar8852495.c index fb465a37ce38..7639f1f0db65 100644 --- a/clang/test/PCH/rdar8852495.c +++ b/clang/test/PCH/rdar8852495.c @@ -5,6 +5,8 @@ // RUN: %clang_cc1 %s -emit-pch -o %t -Wsign-compare -Wtautological-compare // RUN: %clang_cc1 %s -include-pch %t -verify -fsyntax-only -Wno-sign-compare -Wtautological-compare +// expected-no-diagnostics + // This tests that diagnostic mappings from PCH are propagated for #pragma // diagnostics but not for command-line flags. diff --git a/clang/test/PCH/reinclude.cpp b/clang/test/PCH/reinclude.cpp index 97e22cf9d6f1..4bec0508b149 100644 --- a/clang/test/PCH/reinclude.cpp +++ b/clang/test/PCH/reinclude.cpp @@ -7,4 +7,6 @@ // RUN: %clang_cc1 -x c++-header %S/reinclude2.h -include-pch %t1 -emit-pch -o %t2 // RUN: %clang_cc1 %s -include-pch %t2 -fsyntax-only -verify +// expected-no-diagnostics + int q2 = A::y; diff --git a/clang/test/PCH/single-token-macro.c b/clang/test/PCH/single-token-macro.c index 29edb753e41a..52873bfc2441 100644 --- a/clang/test/PCH/single-token-macro.c +++ b/clang/test/PCH/single-token-macro.c @@ -7,6 +7,8 @@ // RUN: %clang_cc1 %s -emit-pch -o %t // RUN: %clang_cc1 %s -include-pch %t -verify -fsyntax-only +// expected-no-diagnostics + #ifndef HEADER #define HEADER diff --git a/clang/test/Parser/block-block-storageclass.c b/clang/test/Parser/block-block-storageclass.c index 97ba11349217..53cd99725225 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 a8cc258ca375..d88daf3a870d 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 3cdf2b05cf85..9aff96377404 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 4f3609dc29f4..9a0e4a64a654 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 8603b3090016..5ea0ce227595 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 14912fd1067b..11092ad0c1cc 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 444862a5c853..be79db36e0df 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 a1ef0944dd1d..a2102056bc1a 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 7b8022e78dc0..056cee1ac06b 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 fa6e4138f1c1..bad5c7c258d2 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 c368fabb80ed..61119eacc9ee 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 fb975cbf3327..b11a75ed2075 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 8667a71657cc..31d17a9d7de9 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 84850ffafb17..4598da05cd02 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 3abb62b6169c..01c7ed6b5ab6 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 9fa8a6880a21..f6afd1205879 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 152aacb8fd10..84cd38dfb3cd 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 ea25dea0dacc..bb7354f550cc 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 5ba2da9931cf..3e2a86d9e9b2 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 be342a225704..472686e8b345 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 53b9dd5e9eca..db8c08303f57 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; diff --git a/clang/test/Preprocessor/comment_save_if.c b/clang/test/Preprocessor/comment_save_if.c index 4946122a3f0c..b972d914ebdb 100644 --- a/clang/test/Preprocessor/comment_save_if.c +++ b/clang/test/Preprocessor/comment_save_if.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -E -CC -pedantic -verify +// expected-no-diagnostics #if 1 /*bar */ diff --git a/clang/test/Preprocessor/cxx_true.cpp b/clang/test/Preprocessor/cxx_true.cpp index 5ee29720d3d7..39cb349b2a81 100644 --- a/clang/test/Preprocessor/cxx_true.cpp +++ b/clang/test/Preprocessor/cxx_true.cpp @@ -3,6 +3,7 @@ RUN: %clang_cc1 -E %s -x c | not grep block RUN: %clang_cc1 -E %s -x c++ -verify -Wundef */ +// expected-no-diagnostics #if true block_1 diff --git a/clang/test/Preprocessor/expr_define_expansion.c b/clang/test/Preprocessor/expr_define_expansion.c index 38c0384092ae..3e5a2c4b0e67 100644 --- a/clang/test/Preprocessor/expr_define_expansion.c +++ b/clang/test/Preprocessor/expr_define_expansion.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -E -CC -pedantic -verify +// expected-no-diagnostics #define FOO && 1 #if defined FOO FOO diff --git a/clang/test/Preprocessor/expr_multichar.c b/clang/test/Preprocessor/expr_multichar.c index 8ab12d9ab8aa..39155e41501e 100644 --- a/clang/test/Preprocessor/expr_multichar.c +++ b/clang/test/Preprocessor/expr_multichar.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 < %s -E -verify -triple i686-pc-linux-gnu +// expected-no-diagnostics #if (('1234' >> 24) != '1') #error Bad multichar constant calculation! diff --git a/clang/test/Preprocessor/macro_paste_identifier_error.c b/clang/test/Preprocessor/macro_paste_identifier_error.c index 457e6f7fc1aa..bba317239ac6 100644 --- a/clang/test/Preprocessor/macro_paste_identifier_error.c +++ b/clang/test/Preprocessor/macro_paste_identifier_error.c @@ -1,6 +1,7 @@ // RUN: %clang_cc1 -fms-extensions -Wno-invalid-token-paste %s -verify // RUN: %clang_cc1 -E -fms-extensions -Wno-invalid-token-paste %s | FileCheck %s // RUN: %clang_cc1 -E -fms-extensions -Wno-invalid-token-paste -x assembler-with-cpp %s | FileCheck %s +// expected-no-diagnostics #define foo a ## b ## = 0 int foo; diff --git a/clang/test/Preprocessor/objc-pp.m b/clang/test/Preprocessor/objc-pp.m index 0ec288c830a0..3522f739344f 100644 --- a/clang/test/Preprocessor/objc-pp.m +++ b/clang/test/Preprocessor/objc-pp.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -fsyntax-only -verify -pedantic -ffreestanding +// expected-no-diagnostics #import // no warning on #import in objc mode. diff --git a/clang/test/Preprocessor/optimize.c b/clang/test/Preprocessor/optimize.c index 97f841a6fbb9..0167e70e0122 100644 --- a/clang/test/Preprocessor/optimize.c +++ b/clang/test/Preprocessor/optimize.c @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -Eonly %s -DOPT_O2 -O2 -verify #ifdef OPT_O2 + // expected-no-diagnostics #ifndef __OPTIMIZE__ #error "__OPTIMIZE__ not defined" #endif @@ -10,6 +11,7 @@ // RUN: %clang_cc1 -Eonly %s -DOPT_O0 -O0 -verify #ifdef OPT_O0 + // expected-no-diagnostics #ifdef __OPTIMIZE__ #error "__OPTIMIZE__ defined" #endif @@ -20,6 +22,7 @@ // RUN: %clang_cc1 -Eonly %s -DOPT_OS -Os -verify #ifdef OPT_OS + // expected-no-diagnostics #ifndef __OPTIMIZE__ #error "__OPTIMIZE__ not defined" #endif diff --git a/clang/test/Preprocessor/pragma_sysheader.c b/clang/test/Preprocessor/pragma_sysheader.c index 17080fec53db..075c9803a507 100644 --- a/clang/test/Preprocessor/pragma_sysheader.c +++ b/clang/test/Preprocessor/pragma_sysheader.c @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -verify -pedantic %s -fsyntax-only // RUN: %clang_cc1 -E %s | FileCheck %s +// expected-no-diagnostics // rdar://6899937 #include "pragma_sysheader.h" @@ -9,4 +10,4 @@ // CHECK-NEXT: # 1 "{{.*}}pragma_sysheader.h" 3 // CHECK-NEXT: typedef int x; // CHECK-NEXT: typedef int x; -// CHECK-NEXT: # 5 "{{.*}}pragma_sysheader.c" 2 +// CHECK-NEXT: # 6 "{{.*}}pragma_sysheader.c" 2 diff --git a/clang/test/Preprocessor/user_defined_system_framework.c b/clang/test/Preprocessor/user_defined_system_framework.c index 8e3db5619795..23f24f96fda4 100644 --- a/clang/test/Preprocessor/user_defined_system_framework.c +++ b/clang/test/Preprocessor/user_defined_system_framework.c @@ -1,4 +1,5 @@ // RUN: %clang -cc1 -fsyntax-only -F %S/Inputs -Wsign-conversion -verify %s +// expected-no-diagnostics // Check that TestFramework is treated as a system header. #include diff --git a/clang/test/Sema/PR2727.c b/clang/test/Sema/PR2727.c index 332b0df72835..11282fdea8a4 100644 --- a/clang/test/Sema/PR2727.c +++ b/clang/test/Sema/PR2727.c @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -verify -fsyntax-only -std=c90 %s // RUN: %clang_cc1 -verify -fsyntax-only -std=c99 %s +// expected-no-diagnostics int f (int x) { diff --git a/clang/test/Sema/PR2728.c b/clang/test/Sema/PR2728.c index e9f1deaf7cd6..0c994057a1e4 100644 --- a/clang/test/Sema/PR2728.c +++ b/clang/test/Sema/PR2728.c @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -verify -fsyntax-only -std=c90 %s // RUN: %clang_cc1 -verify -fsyntax-only -std=c99 %s +// expected-no-diagnostics struct s { diff --git a/clang/test/Sema/PR2923.c b/clang/test/Sema/PR2923.c index f22e70dd8d3d..5741de8e38ec 100644 --- a/clang/test/Sema/PR2923.c +++ b/clang/test/Sema/PR2923.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // Test for absence of crash reported in PR 2923: // diff --git a/clang/test/Sema/address-constant.c b/clang/test/Sema/address-constant.c index e842a7396b8d..c13485b37ba5 100644 --- a/clang/test/Sema/address-constant.c +++ b/clang/test/Sema/address-constant.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics int i; int a[] = {0}; diff --git a/clang/test/Sema/align-arm-apcs.c b/clang/test/Sema/align-arm-apcs.c index 0a5d3fe92151..544f53923191 100644 --- a/clang/test/Sema/align-arm-apcs.c +++ b/clang/test/Sema/align-arm-apcs.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple arm-unknown-unknown -target-abi apcs-gnu -fsyntax-only -verify %s +// expected-no-diagnostics struct s0 { double f0; int f1; }; char chk0[__alignof__(struct s0) == 4 ? 1 : -1]; diff --git a/clang/test/Sema/align-x86-64.c b/clang/test/Sema/align-x86-64.c index edea5d8b7422..09bf63390f35 100644 --- a/clang/test/Sema/align-x86-64.c +++ b/clang/test/Sema/align-x86-64.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -fsyntax-only -verify %s +// expected-no-diagnostics // PR5599 diff --git a/clang/test/Sema/align-x86.c b/clang/test/Sema/align-x86.c index c6cd7543c21d..6b93a4893d15 100644 --- a/clang/test/Sema/align-x86.c +++ b/clang/test/Sema/align-x86.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple i386-apple-darwin9 -fsyntax-only -verify %s +// expected-no-diagnostics // PR3433 double g1; diff --git a/clang/test/Sema/arg-scope-c99.c b/clang/test/Sema/arg-scope-c99.c index 912776ab8ff6..9b2811ccc759 100644 --- a/clang/test/Sema/arg-scope-c99.c +++ b/clang/test/Sema/arg-scope-c99.c @@ -1,2 +1,3 @@ // RUN: %clang_cc1 -fsyntax-only -std=c99 -verify %s +// expected-no-diagnostics void bb(int sz, int ar[sz][sz]) { } diff --git a/clang/test/Sema/arg-scope.c b/clang/test/Sema/arg-scope.c index ed9261941b58..3de672be9f7d 100644 --- a/clang/test/Sema/arg-scope.c +++ b/clang/test/Sema/arg-scope.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics void aa(int b, int x[sizeof b]) {} void foo(int i, int A[i]) {} diff --git a/clang/test/Sema/arm-layout.c b/clang/test/Sema/arm-layout.c index d017fdb8aa07..4b76515d6257 100644 --- a/clang/test/Sema/arm-layout.c +++ b/clang/test/Sema/arm-layout.c @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -triple armv7-unknown-unknown -target-abi apcs-gnu %s -verify // RUN: %clang_cc1 -triple armv7-unknown-unknown -target-abi aapcs %s -verify +// expected-no-diagnostics #define check(name, cond) int _##name##_check[(cond) ? 1 : -1] diff --git a/clang/test/Sema/assign-null.c b/clang/test/Sema/assign-null.c index 7f172b195355..ac90850eb7ce 100644 --- a/clang/test/Sema/assign-null.c +++ b/clang/test/Sema/assign-null.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics #include diff --git a/clang/test/Sema/bitfield-layout.c b/clang/test/Sema/bitfield-layout.c index 2655fc70cd4c..d22639147586 100644 --- a/clang/test/Sema/bitfield-layout.c +++ b/clang/test/Sema/bitfield-layout.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -fsyntax-only -verify -triple=i686-apple-darwin9 +// expected-no-diagnostics #define CHECK_SIZE(kind, name, size) extern int name##1[sizeof(kind name) == size ? 1 : -1]; #define CHECK_ALIGN(kind, name, size) extern int name##2[__alignof(kind name) == size ? 1 : -1]; diff --git a/clang/test/Sema/bitfield-promote.c b/clang/test/Sema/bitfield-promote.c index 4d14ad191e1e..3189cd57e4f3 100644 --- a/clang/test/Sema/bitfield-promote.c +++ b/clang/test/Sema/bitfield-promote.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics struct {unsigned x : 2;} x; __typeof__((x.x+=1)+1) y; __typeof__(x.x<<1) y; diff --git a/clang/test/Sema/block-storageclass.c b/clang/test/Sema/block-storageclass.c index 9bfbfbd614e5..74f1b0ea77fa 100644 --- a/clang/test/Sema/block-storageclass.c +++ b/clang/test/Sema/block-storageclass.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -fsyntax-only -verify -fblocks +// expected-no-diagnostics int printf(const char *, ...); void _Block_byref_release(void*src){} diff --git a/clang/test/Sema/builtin_objc_msgSend.c b/clang/test/Sema/builtin_objc_msgSend.c index 357a5bc26eb5..419e92da44eb 100644 --- a/clang/test/Sema/builtin_objc_msgSend.c +++ b/clang/test/Sema/builtin_objc_msgSend.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -fsyntax-only -verify +// expected-no-diagnostics // rdar://8632525 typedef struct objc_class *Class; diff --git a/clang/test/Sema/builtins-decl.c b/clang/test/Sema/builtins-decl.c index d6b004aa8820..729dc4599de9 100644 --- a/clang/test/Sema/builtins-decl.c +++ b/clang/test/Sema/builtins-decl.c @@ -1,5 +1,6 @@ // RUN: %clang_cc1 %s -fsyntax-only -verify -triple=i686-mingw32 // RUN: %clang_cc1 %s -fsyntax-only -verify -triple=x86_64-mingw32 +// expected-no-diagnostics // mingw-w64's intrin.h has decls below. // we should accept them. diff --git a/clang/test/Sema/check-increment.c b/clang/test/Sema/check-increment.c index 070ea74f6800..ae33c2085666 100644 --- a/clang/test/Sema/check-increment.c +++ b/clang/test/Sema/check-increment.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics int printf(const char *, ...); typedef int *pint; diff --git a/clang/test/Sema/complex-promotion.c b/clang/test/Sema/complex-promotion.c index 23c3b6895314..a59bf718931b 100644 --- a/clang/test/Sema/complex-promotion.c +++ b/clang/test/Sema/complex-promotion.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -verify -fsyntax-only +// expected-no-diagnostics float a; diff --git a/clang/test/Sema/const-eval-64.c b/clang/test/Sema/const-eval-64.c index 5727a93e51fa..1290bf4dd85d 100644 --- a/clang/test/Sema/const-eval-64.c +++ b/clang/test/Sema/const-eval-64.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -triple x86_64-linux %s +// expected-no-diagnostics #define EVAL_EXPR(testno, expr) int test##testno = sizeof(struct{char qq[expr];}); diff --git a/clang/test/Sema/const-ptr-int-ptr-cast.c b/clang/test/Sema/const-ptr-int-ptr-cast.c index 8beaf9d4947c..73b4a8a74fd0 100644 --- a/clang/test/Sema/const-ptr-int-ptr-cast.c +++ b/clang/test/Sema/const-ptr-int-ptr-cast.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -ffreestanding %s +// expected-no-diagnostics #include diff --git a/clang/test/Sema/constant-builtins.c b/clang/test/Sema/constant-builtins.c index 0045ea03d49d..c98f62dfc5a2 100644 --- a/clang/test/Sema/constant-builtins.c +++ b/clang/test/Sema/constant-builtins.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only %s -verify -pedantic +// expected-no-diagnostics // Math stuff diff --git a/clang/test/Sema/darwin-align-cast.c b/clang/test/Sema/darwin-align-cast.c index 208097481cdc..bd357edceddf 100644 --- a/clang/test/Sema/darwin-align-cast.c +++ b/clang/test/Sema/darwin-align-cast.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics typedef long unsigned int __darwin_size_t; typedef long __darwin_ssize_t; typedef __darwin_size_t size_t; diff --git a/clang/test/Sema/enum-packed.c b/clang/test/Sema/enum-packed.c index 0eb6c14dbe85..b6ba972ed686 100644 --- a/clang/test/Sema/enum-packed.c +++ b/clang/test/Sema/enum-packed.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // PR7477 enum __attribute__((packed)) E { diff --git a/clang/test/Sema/expr-comma-c99.c b/clang/test/Sema/expr-comma-c99.c index d0883ba202f9..6e97a4fc4957 100644 --- a/clang/test/Sema/expr-comma-c99.c +++ b/clang/test/Sema/expr-comma-c99.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -fsyntax-only -verify -std=c99 +// expected-no-diagnostics // rdar://6095180 struct s { char c[17]; }; diff --git a/clang/test/Sema/expr-comma.c b/clang/test/Sema/expr-comma.c index d3e4020af637..7902715915a2 100644 --- a/clang/test/Sema/expr-comma.c +++ b/clang/test/Sema/expr-comma.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -fsyntax-only -verify -std=c89 +// expected-no-diagnostics // rdar://6095180 struct s { char c[17]; }; diff --git a/clang/test/Sema/format-string-percentm.c b/clang/test/Sema/format-string-percentm.c index 1ffc439af07a..02fea462946c 100644 --- a/clang/test/Sema/format-string-percentm.c +++ b/clang/test/Sema/format-string-percentm.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s -triple i686-pc-linux-gnu +// expected-no-diagnostics // PR 4142 - support glibc extension to printf: '%m' (which prints strerror(errno)). int printf(char const*,...); diff --git a/clang/test/Sema/implicit-builtin-freestanding.c b/clang/test/Sema/implicit-builtin-freestanding.c index 505e5221eff8..385cf1f751ca 100644 --- a/clang/test/Sema/implicit-builtin-freestanding.c +++ b/clang/test/Sema/implicit-builtin-freestanding.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -ffreestanding %s +// expected-no-diagnostics int malloc(int a) { return a; } diff --git a/clang/test/Sema/init-struct-qualified.c b/clang/test/Sema/init-struct-qualified.c index 49ec7cc5e060..9d18e224f8eb 100644 --- a/clang/test/Sema/init-struct-qualified.c +++ b/clang/test/Sema/init-struct-qualified.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify < %s +// expected-no-diagnostics typedef float CGFloat; typedef struct _NSPoint { CGFloat x; CGFloat y; } NSPoint; typedef struct _NSSize { CGFloat width; CGFloat height; } NSSize; diff --git a/clang/test/Sema/init-vector.c b/clang/test/Sema/init-vector.c index f0cf32bd3f9c..a95e789e3a1b 100644 --- a/clang/test/Sema/init-vector.c +++ b/clang/test/Sema/init-vector.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics typedef float __attribute__((vector_size (16))) v4f_t; diff --git a/clang/test/Sema/int-arith-convert.c b/clang/test/Sema/int-arith-convert.c index c56ab3b76302..0f425bd0e45b 100644 --- a/clang/test/Sema/int-arith-convert.c +++ b/clang/test/Sema/int-arith-convert.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple=i686-linux-gnu -fsyntax-only -verify %s +// expected-no-diagnostics // Check types are the same through redeclaration unsigned long x; diff --git a/clang/test/Sema/knr-variadic-def.c b/clang/test/Sema/knr-variadic-def.c index 6d5d63208bf0..934f32fd26b1 100644 --- a/clang/test/Sema/knr-variadic-def.c +++ b/clang/test/Sema/knr-variadic-def.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -pedantic %s +// expected-no-diagnostics // PR4287 #include diff --git a/clang/test/Sema/many-logical-ops.c b/clang/test/Sema/many-logical-ops.c index 09a76841032f..ec3bbda4dd4c 100644 --- a/clang/test/Sema/many-logical-ops.c +++ b/clang/test/Sema/many-logical-ops.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -Wconstant-conversion -verify %s +// expected-no-diagnostics // rdar://10913206&10941790 // Check that we don't get stack overflow trying to evaluate a huge number of diff --git a/clang/test/Sema/member-reference.c b/clang/test/Sema/member-reference.c index 7bda14303a2d..edbbea59ac87 100644 --- a/clang/test/Sema/member-reference.c +++ b/clang/test/Sema/member-reference.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -verify -fsyntax-only +// expected-no-diagnostics struct simple { int i; }; diff --git a/clang/test/Sema/mms-bitfields.c b/clang/test/Sema/mms-bitfields.c index 9289b9029a1f..d238a7a10d0d 100644 --- a/clang/test/Sema/mms-bitfields.c +++ b/clang/test/Sema/mms-bitfields.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -mms-bitfields -fsyntax-only -verify -triple x86_64-apple-darwin9 %s +// expected-no-diagnostics // The -mms-bitfields commandline parameter should behave the same // as the ms_struct attribute. diff --git a/clang/test/Sema/ms_wide_predefined_expr.cpp b/clang/test/Sema/ms_wide_predefined_expr.cpp index 8e816e00b37a..d56d1576cd0c 100644 --- a/clang/test/Sema/ms_wide_predefined_expr.cpp +++ b/clang/test/Sema/ms_wide_predefined_expr.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -fsyntax-only -Wno-unused-value -Wmicrosoft -verify -fms-extensions +// expected-no-diagnostics // Wide character predefined identifiers #define _STR2WSTR(str) L##str diff --git a/clang/test/Sema/overloaded-func-transparent-union.c b/clang/test/Sema/overloaded-func-transparent-union.c index fa0314e946f2..acdc5898b026 100644 --- a/clang/test/Sema/overloaded-func-transparent-union.c +++ b/clang/test/Sema/overloaded-func-transparent-union.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -fsyntax-only -verify +// expected-no-diagnostics // rdar:// 9129552 // PR9406 diff --git a/clang/test/Sema/pragma-align-mac68k.c b/clang/test/Sema/pragma-align-mac68k.c index 64c693907f9c..fd93fcbd5ca4 100644 --- a/clang/test/Sema/pragma-align-mac68k.c +++ b/clang/test/Sema/pragma-align-mac68k.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple i386-apple-darwin9 -fsyntax-only -verify %s +// expected-no-diagnostics #include diff --git a/clang/test/Sema/pragma-align-packed.c b/clang/test/Sema/pragma-align-packed.c index 74fbd13d162b..b8daf40b2c82 100644 --- a/clang/test/Sema/pragma-align-packed.c +++ b/clang/test/Sema/pragma-align-packed.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple i386-apple-darwin9 -fsyntax-only -verify %s +// expected-no-diagnostics #pragma pack(push, 1) struct s0 { diff --git a/clang/test/Sema/pragma-pack-2.c b/clang/test/Sema/pragma-pack-2.c index 4a4c202c71ad..3696a22d5aa5 100644 --- a/clang/test/Sema/pragma-pack-2.c +++ b/clang/test/Sema/pragma-pack-2.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple i686-apple-darwin9 %s -fsyntax-only -verify +// expected-no-diagnostics #include diff --git a/clang/test/Sema/pragma-pack-3.c b/clang/test/Sema/pragma-pack-3.c index d97359e45b71..e7a6cee55057 100644 --- a/clang/test/Sema/pragma-pack-3.c +++ b/clang/test/Sema/pragma-pack-3.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple i686-apple-darwin9 %s -fsyntax-only -verify +// expected-no-diagnostics // Stack: [], Alignment: 8 diff --git a/clang/test/Sema/pragma-pack-4.c b/clang/test/Sema/pragma-pack-4.c index b06fc0eaf15f..6a09e14d88cf 100644 --- a/clang/test/Sema/pragma-pack-4.c +++ b/clang/test/Sema/pragma-pack-4.c @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -triple i686-apple-darwin9 %s -fsyntax-only -verify // RUN: %clang_cc1 -triple x86_64-apple-darwin9 %s -fsyntax-only -verify +// expected-no-diagnostics // rdar://problem/7095436 #pragma pack(4) diff --git a/clang/test/Sema/pragma-pack-5.c b/clang/test/Sema/pragma-pack-5.c index 95bbe1fe7e94..24bd4cd7d922 100644 --- a/clang/test/Sema/pragma-pack-5.c +++ b/clang/test/Sema/pragma-pack-5.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple x86_64-apple-darwin9 %s -fsyntax-only -verify -ffreestanding +// expected-no-diagnostics // and PR9560 // Check #pragma pack handling with bitfields. diff --git a/clang/test/Sema/pragma-pack-6.c b/clang/test/Sema/pragma-pack-6.c index 40659c23bda8..c87c99d5dab9 100644 --- a/clang/test/Sema/pragma-pack-6.c +++ b/clang/test/Sema/pragma-pack-6.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple i686-apple-darwin9 %s -fsyntax-only -verify +// expected-no-diagnostics // Pragma pack handling with tag declarations diff --git a/clang/test/Sema/return-silent.c b/clang/test/Sema/return-silent.c index eb9641b7f3be..83c3a0a17905 100644 --- a/clang/test/Sema/return-silent.c +++ b/clang/test/Sema/return-silent.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -Wno-return-type -fsyntax-only -verify +// expected-no-diagnostics int t14() { return; diff --git a/clang/test/Sema/short-enums.c b/clang/test/Sema/short-enums.c index 6605c4e8fc07..9bf0064646a7 100644 --- a/clang/test/Sema/short-enums.c +++ b/clang/test/Sema/short-enums.c @@ -1,5 +1,6 @@ // RUN: not %clang_cc1 -fsyntax-only %s -verify // RUN: %clang_cc1 -fshort-enums -fsyntax-only %s -verify +// expected-no-diagnostics enum x { A }; int t0[sizeof(enum x) == 1 ? 1 : -1]; diff --git a/clang/test/Sema/struct-cast.c b/clang/test/Sema/struct-cast.c index 30ef89242afc..8aa7ca90dd13 100644 --- a/clang/test/Sema/struct-cast.c +++ b/clang/test/Sema/struct-cast.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only %s -verify +// expected-no-diagnostics struct S { int one; diff --git a/clang/test/Sema/struct-packed-align.c b/clang/test/Sema/struct-packed-align.c index 6ca6a6096c4e..166d5eb1ff8d 100644 --- a/clang/test/Sema/struct-packed-align.c +++ b/clang/test/Sema/struct-packed-align.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -fsyntax-only -verify +// expected-no-diagnostics // Packed structs. struct s { diff --git a/clang/test/Sema/surpress-deprecated.c b/clang/test/Sema/surpress-deprecated.c index dd673b9646ea..db9ab3f4eeb6 100644 --- a/clang/test/Sema/surpress-deprecated.c +++ b/clang/test/Sema/surpress-deprecated.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -Wno-deprecated-declarations -verify %s +// expected-no-diagnostics extern void OldFunction() __attribute__((deprecated)); int main (int argc, const char * argv[]) { diff --git a/clang/test/Sema/transparent-union-pointer.c b/clang/test/Sema/transparent-union-pointer.c index 31c93914b819..bf1fb17ac6f8 100644 --- a/clang/test/Sema/transparent-union-pointer.c +++ b/clang/test/Sema/transparent-union-pointer.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -fsyntax-only -verify +// expected-no-diagnostics typedef union { union wait *__uptr; diff --git a/clang/test/Sema/typedef-prototype.c b/clang/test/Sema/typedef-prototype.c index 8372154ce0ef..98b1ab809997 100644 --- a/clang/test/Sema/typedef-prototype.c +++ b/clang/test/Sema/typedef-prototype.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics typedef int unary_int_func(int arg); unary_int_func add_one; diff --git a/clang/test/Sema/unnamed-bitfield-init.c b/clang/test/Sema/unnamed-bitfield-init.c index f3cc49c34bf2..6fa18014179e 100644 --- a/clang/test/Sema/unnamed-bitfield-init.c +++ b/clang/test/Sema/unnamed-bitfield-init.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics typedef struct { int a; int : 24; char b; } S; diff --git a/clang/test/Sema/va_arg_x86_64.c b/clang/test/Sema/va_arg_x86_64.c index 9f514c1f59e4..2659a1b6d4cd 100644 --- a/clang/test/Sema/va_arg_x86_64.c +++ b/clang/test/Sema/va_arg_x86_64.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -triple=x86_64-unknown-freebsd7.0 %s +// expected-no-diagnostics // PR2631 char* foo(char *fmt, __builtin_va_list ap) diff --git a/clang/test/Sema/variadic-block.c b/clang/test/Sema/variadic-block.c index ba4bb71c9750..4f23cb8e0814 100644 --- a/clang/test/Sema/variadic-block.c +++ b/clang/test/Sema/variadic-block.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -verify -fsyntax-only -fblocks +// expected-no-diagnostics #include diff --git a/clang/test/Sema/vfprintf-valid-redecl.c b/clang/test/Sema/vfprintf-valid-redecl.c index 14fbbc47ddbc..5c5ce8d12b00 100644 --- a/clang/test/Sema/vfprintf-valid-redecl.c +++ b/clang/test/Sema/vfprintf-valid-redecl.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -fsyntax-only -pedantic -verify +// expected-no-diagnostics // PR4290 // The following declaration is compatible with vfprintf, so we shouldn't diff --git a/clang/test/Sema/warn-gnu-designators.c b/clang/test/Sema/warn-gnu-designators.c index bdb3374288df..e55cfba0c589 100644 --- a/clang/test/Sema/warn-gnu-designators.c +++ b/clang/test/Sema/warn-gnu-designators.c @@ -1,2 +1,3 @@ // RUN: %clang_cc1 -Wno-gnu-designator -verify %s +// expected-no-diagnostics struct { int x, y, z[12]; } value = { x:17, .z [3 ... 5] = 7 }; diff --git a/clang/test/Sema/weak-import-on-enum.c b/clang/test/Sema/weak-import-on-enum.c index 3a2c0e5b3a14..ad437693a10e 100644 --- a/clang/test/Sema/weak-import-on-enum.c +++ b/clang/test/Sema/weak-import-on-enum.c @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -fsyntax-only -verify -triple x86_64-apple-darwin %s // RUN: %clang_cc1 -triple i386-apple-darwin9 -fsyntax-only -verify %s +// expected-no-diagnostics // rdar://10277579 enum __attribute__((deprecated)) __attribute__((weak_import)) A { diff --git a/clang/test/SemaCXX/2008-01-11-BadWarning.cpp b/clang/test/SemaCXX/2008-01-11-BadWarning.cpp index b84e7c1cf862..e27c0848ef37 100644 --- a/clang/test/SemaCXX/2008-01-11-BadWarning.cpp +++ b/clang/test/SemaCXX/2008-01-11-BadWarning.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wall %s +// expected-no-diagnostics // rdar://5683899 void** f(void **Buckets, unsigned NumBuckets) { return Buckets + NumBuckets; diff --git a/clang/test/SemaCXX/MicrosoftCompatibilityNoExceptions.cpp b/clang/test/SemaCXX/MicrosoftCompatibilityNoExceptions.cpp index d932b5dbbcea..14e5160e090b 100644 --- a/clang/test/SemaCXX/MicrosoftCompatibilityNoExceptions.cpp +++ b/clang/test/SemaCXX/MicrosoftCompatibilityNoExceptions.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -fsyntax-only -verify -fms-compatibility +// expected-no-diagnostics // PR13153 namespace std {} diff --git a/clang/test/SemaCXX/PR10447.cpp b/clang/test/SemaCXX/PR10447.cpp index 08644ada4a4b..5ba74aaba36c 100644 --- a/clang/test/SemaCXX/PR10447.cpp +++ b/clang/test/SemaCXX/PR10447.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -verify %s +// expected-no-diagnostics // PR12223 namespace test1 { diff --git a/clang/test/SemaCXX/PR5086-ambig-resolution-enum.cpp b/clang/test/SemaCXX/PR5086-ambig-resolution-enum.cpp index b5aac5f09c16..eeb73f6f56c9 100644 --- a/clang/test/SemaCXX/PR5086-ambig-resolution-enum.cpp +++ b/clang/test/SemaCXX/PR5086-ambig-resolution-enum.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11 +// expected-no-diagnostics class C { public: diff --git a/clang/test/SemaCXX/PR6562.cpp b/clang/test/SemaCXX/PR6562.cpp index 854d9b058bc3..144fde68b178 100644 --- a/clang/test/SemaCXX/PR6562.cpp +++ b/clang/test/SemaCXX/PR6562.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics struct X { ~X(); }; template diff --git a/clang/test/SemaCXX/PR9884.cpp b/clang/test/SemaCXX/PR9884.cpp index ab883c4062c9..bb8bd6a56bff 100644 --- a/clang/test/SemaCXX/PR9884.cpp +++ b/clang/test/SemaCXX/PR9884.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics class Base { protected: Base(int val); diff --git a/clang/test/SemaCXX/PR9902.cpp b/clang/test/SemaCXX/PR9902.cpp index 80086e445c5d..a34f99c12287 100644 --- a/clang/test/SemaCXX/PR9902.cpp +++ b/clang/test/SemaCXX/PR9902.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s +// expected-no-diagnostics template struct __allocator_traits_rebind diff --git a/clang/test/SemaCXX/PR9908.cpp b/clang/test/SemaCXX/PR9908.cpp index fc090cc42f92..a15b637a03d2 100644 --- a/clang/test/SemaCXX/PR9908.cpp +++ b/clang/test/SemaCXX/PR9908.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s +// expected-no-diagnostics template struct __allocator_traits_rebind diff --git a/clang/test/SemaCXX/__try.cpp b/clang/test/SemaCXX/__try.cpp index cb5d38a097ef..a0f503abe6c8 100644 --- a/clang/test/SemaCXX/__try.cpp +++ b/clang/test/SemaCXX/__try.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -fborland-extensions -fcxx-exceptions %s +// expected-no-diagnostics // This test is from http://docwiki.embarcadero.com/RADStudio/en/Try diff --git a/clang/test/SemaCXX/anonymous-union-cxx11.cpp b/clang/test/SemaCXX/anonymous-union-cxx11.cpp index 8e682ebcda3d..9f987a9681cd 100644 --- a/clang/test/SemaCXX/anonymous-union-cxx11.cpp +++ b/clang/test/SemaCXX/anonymous-union-cxx11.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify -pedantic %s +// expected-no-diagnostics namespace PR12866 { struct bar { diff --git a/clang/test/SemaCXX/blocks-1.cpp b/clang/test/SemaCXX/blocks-1.cpp index 1b1509482af3..02e9cac62ebe 100644 --- a/clang/test/SemaCXX/blocks-1.cpp +++ b/clang/test/SemaCXX/blocks-1.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s -fblocks -std=c++11 +// expected-no-diagnostics extern "C" int exit(int); diff --git a/clang/test/SemaCXX/blocks.cpp b/clang/test/SemaCXX/blocks.cpp index adbff553e608..3f81c274d04f 100644 --- a/clang/test/SemaCXX/blocks.cpp +++ b/clang/test/SemaCXX/blocks.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s -fblocks +// expected-no-diagnostics void tovoid(void*); diff --git a/clang/test/SemaCXX/borland-extensions.cpp b/clang/test/SemaCXX/borland-extensions.cpp index 483153004dcb..1e4bd45612fd 100644 --- a/clang/test/SemaCXX/borland-extensions.cpp +++ b/clang/test/SemaCXX/borland-extensions.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -fsyntax-only -verify -fborland-extensions +// expected-no-diagnostics // Borland extensions diff --git a/clang/test/SemaCXX/builtin-exception-spec.cpp b/clang/test/SemaCXX/builtin-exception-spec.cpp index 324d20ea6a15..590cd3c35d4e 100644 --- a/clang/test/SemaCXX/builtin-exception-spec.cpp +++ b/clang/test/SemaCXX/builtin-exception-spec.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -isystem %S/Inputs -fsyntax-only -verify %s +// expected-no-diagnostics #include extern "C" { diff --git a/clang/test/SemaCXX/builtin-ptrtomember-overload.cpp b/clang/test/SemaCXX/builtin-ptrtomember-overload.cpp index c7b5173a4fbe..c27d642f9a46 100644 --- a/clang/test/SemaCXX/builtin-ptrtomember-overload.cpp +++ b/clang/test/SemaCXX/builtin-ptrtomember-overload.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11 +// expected-no-diagnostics struct A {}; diff --git a/clang/test/SemaCXX/builtin_objc_msgSend.cpp b/clang/test/SemaCXX/builtin_objc_msgSend.cpp index 0e90d54f804f..082fb2868c63 100644 --- a/clang/test/SemaCXX/builtin_objc_msgSend.cpp +++ b/clang/test/SemaCXX/builtin_objc_msgSend.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -fsyntax-only -verify +// expected-no-diagnostics // rdar://8686888 typedef struct objc_selector *SEL; diff --git a/clang/test/SemaCXX/cast-explicit-ctor.cpp b/clang/test/SemaCXX/cast-explicit-ctor.cpp index 0052856d2ff9..41d2fa2fbf2c 100644 --- a/clang/test/SemaCXX/cast-explicit-ctor.cpp +++ b/clang/test/SemaCXX/cast-explicit-ctor.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics struct B { explicit B(bool); }; void f() { (void)(B)true; diff --git a/clang/test/SemaCXX/class-layout.cpp b/clang/test/SemaCXX/class-layout.cpp index d81944ab9b3c..f2ff9fcfd7c1 100644 --- a/clang/test/SemaCXX/class-layout.cpp +++ b/clang/test/SemaCXX/class-layout.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple x86_64-unknown-unknown %s -fsyntax-only -verify +// expected-no-diagnostics #define SA(n, p) int a##n[(p) ? 1 : -1] diff --git a/clang/test/SemaCXX/comma.cpp b/clang/test/SemaCXX/comma.cpp index 79ff7d1cde25..3a6162bc473e 100644 --- a/clang/test/SemaCXX/comma.cpp +++ b/clang/test/SemaCXX/comma.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // PR6076 void f(); diff --git a/clang/test/SemaCXX/complex-init-list.cpp b/clang/test/SemaCXX/complex-init-list.cpp index e75833a37dbc..f70f9df6c73b 100644 --- a/clang/test/SemaCXX/complex-init-list.cpp +++ b/clang/test/SemaCXX/complex-init-list.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -verify -fsyntax-only -pedantic +// expected-no-diagnostics // This file tests the clang extension which allows initializing the components // of a complex number individually using an initialization list. Basically, diff --git a/clang/test/SemaCXX/constexpr-turing.cpp b/clang/test/SemaCXX/constexpr-turing.cpp index c5153788adfd..07c04eff3083 100644 --- a/clang/test/SemaCXX/constexpr-turing.cpp +++ b/clang/test/SemaCXX/constexpr-turing.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -verify -std=c++11 %s +// expected-no-diagnostics // A direct proof that constexpr is Turing-complete, once DR1454 is implemented. diff --git a/clang/test/SemaCXX/decltype-98.cpp b/clang/test/SemaCXX/decltype-98.cpp index db52565e6c74..3202dfea71e2 100644 --- a/clang/test/SemaCXX/decltype-98.cpp +++ b/clang/test/SemaCXX/decltype-98.cpp @@ -1,3 +1,4 @@ // RUN: %clang_cc1 -std=c++98 -fsyntax-only -verify %s +// expected-no-diagnostics extern int x; __decltype(1) x = 3; diff --git a/clang/test/SemaCXX/decltype-pr4444.cpp b/clang/test/SemaCXX/decltype-pr4444.cpp index 2f95075067a4..a5ac54bc37fe 100644 --- a/clang/test/SemaCXX/decltype-pr4444.cpp +++ b/clang/test/SemaCXX/decltype-pr4444.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11 +// expected-no-diagnostics template struct TestStruct { diff --git a/clang/test/SemaCXX/decltype-pr4448.cpp b/clang/test/SemaCXX/decltype-pr4448.cpp index 9d33ce7341a2..b781b891ffb7 100644 --- a/clang/test/SemaCXX/decltype-pr4448.cpp +++ b/clang/test/SemaCXX/decltype-pr4448.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11 +// expected-no-diagnostics template< typename T, T t, decltype(t+2) v > struct Convoluted {}; diff --git a/clang/test/SemaCXX/decltype-this.cpp b/clang/test/SemaCXX/decltype-this.cpp index a13416f089dd..21b4b60ea3ce 100644 --- a/clang/test/SemaCXX/decltype-this.cpp +++ b/clang/test/SemaCXX/decltype-this.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s +// expected-no-diagnostics template struct is_same { static const bool value = false; diff --git a/clang/test/SemaCXX/decltype.cpp b/clang/test/SemaCXX/decltype.cpp index a1200e08200d..ef3103ded7a9 100644 --- a/clang/test/SemaCXX/decltype.cpp +++ b/clang/test/SemaCXX/decltype.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics // PR5290 int const f0(); diff --git a/clang/test/SemaCXX/default-argument-temporaries.cpp b/clang/test/SemaCXX/default-argument-temporaries.cpp index 3ab7bf4eb13d..c0880d507e43 100644 --- a/clang/test/SemaCXX/default-argument-temporaries.cpp +++ b/clang/test/SemaCXX/default-argument-temporaries.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics struct B { B(void* = 0); }; struct A { diff --git a/clang/test/SemaCXX/do-while-scope.cpp b/clang/test/SemaCXX/do-while-scope.cpp index 2602ae12f243..67534db36d61 100644 --- a/clang/test/SemaCXX/do-while-scope.cpp +++ b/clang/test/SemaCXX/do-while-scope.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics void test() { int x; diff --git a/clang/test/SemaCXX/empty-class-layout.cpp b/clang/test/SemaCXX/empty-class-layout.cpp index c68f2bb6fb0e..951f16c1b0c5 100644 --- a/clang/test/SemaCXX/empty-class-layout.cpp +++ b/clang/test/SemaCXX/empty-class-layout.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple x86_64-unknown-unknown %s -fsyntax-only -verify +// expected-no-diagnostics #define SA(n, p) int a##n[(p) ? 1 : -1] diff --git a/clang/test/SemaCXX/exception-spec-no-exceptions.cpp b/clang/test/SemaCXX/exception-spec-no-exceptions.cpp index 2e180706d3b9..e26e864e3d8f 100644 --- a/clang/test/SemaCXX/exception-spec-no-exceptions.cpp +++ b/clang/test/SemaCXX/exception-spec-no-exceptions.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -fexceptions -fobjc-exceptions %s +// expected-no-diagnostics // Note that we're specifically excluding -fcxx-exceptions in the command line above. diff --git a/clang/test/SemaCXX/friend-out-of-line.cpp b/clang/test/SemaCXX/friend-out-of-line.cpp index 56b2daab4c4f..ab75a4f8ca44 100644 --- a/clang/test/SemaCXX/friend-out-of-line.cpp +++ b/clang/test/SemaCXX/friend-out-of-line.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // namespace N { diff --git a/clang/test/SemaCXX/gnu-case-ranges.cpp b/clang/test/SemaCXX/gnu-case-ranges.cpp index b082e3a6c1c0..c613cecbc5a9 100644 --- a/clang/test/SemaCXX/gnu-case-ranges.cpp +++ b/clang/test/SemaCXX/gnu-case-ranges.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -verify -Wno-covered-switch-default %s +// expected-no-diagnostics enum E { one, diff --git a/clang/test/SemaCXX/goto2.cpp b/clang/test/SemaCXX/goto2.cpp index 01ea031ac2c1..b42a61118241 100644 --- a/clang/test/SemaCXX/goto2.cpp +++ b/clang/test/SemaCXX/goto2.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics //PR9463 int subfun(const char *text) { diff --git a/clang/test/SemaCXX/indirect-goto.cpp b/clang/test/SemaCXX/indirect-goto.cpp index 5b3fac4a658f..cb2213d78dd7 100644 --- a/clang/test/SemaCXX/indirect-goto.cpp +++ b/clang/test/SemaCXX/indirect-goto.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics namespace test1 { // Make sure this doesn't crash. diff --git a/clang/test/SemaCXX/issue547.cpp b/clang/test/SemaCXX/issue547.cpp index ab03a155d366..bfec6e080ba5 100644 --- a/clang/test/SemaCXX/issue547.cpp +++ b/clang/test/SemaCXX/issue547.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics template struct classify_function { diff --git a/clang/test/SemaCXX/local-classes.cpp b/clang/test/SemaCXX/local-classes.cpp index 500b2197ef35..f4ca79159dc9 100644 --- a/clang/test/SemaCXX/local-classes.cpp +++ b/clang/test/SemaCXX/local-classes.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics namespace PR6382 { int foo() diff --git a/clang/test/SemaCXX/lookup-member.cpp b/clang/test/SemaCXX/lookup-member.cpp index c75b185bcc42..39f5a15d0811 100644 --- a/clang/test/SemaCXX/lookup-member.cpp +++ b/clang/test/SemaCXX/lookup-member.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics namespace A { class String; diff --git a/clang/test/SemaCXX/member-expr-anonymous-union.cpp b/clang/test/SemaCXX/member-expr-anonymous-union.cpp index 6e35eb2b14d7..246afee23990 100644 --- a/clang/test/SemaCXX/member-expr-anonymous-union.cpp +++ b/clang/test/SemaCXX/member-expr-anonymous-union.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -fsyntax-only -verify +// expected-no-diagnostics // PR5543 struct A { int x; union { int* y; float* z; }; }; struct B : A {int a;}; diff --git a/clang/test/SemaCXX/member-expr-static.cpp b/clang/test/SemaCXX/member-expr-static.cpp index 7ed60f7a17b7..d4c6c0b6da2f 100644 --- a/clang/test/SemaCXX/member-expr-static.cpp +++ b/clang/test/SemaCXX/member-expr-static.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics typedef void (*thread_continue_t)(); extern "C" { diff --git a/clang/test/SemaCXX/member-pointer-size.cpp b/clang/test/SemaCXX/member-pointer-size.cpp index 3aa1eaf5f256..8b595237fcab 100644 --- a/clang/test/SemaCXX/member-pointer-size.cpp +++ b/clang/test/SemaCXX/member-pointer-size.cpp @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -triple x86_64-unknown-unknown %s -fsyntax-only -verify // RUN: %clang_cc1 -triple i686-unknown-unknown %s -fsyntax-only -verify +// expected-no-diagnostics #include struct A; diff --git a/clang/test/SemaCXX/ms-exception-spec.cpp b/clang/test/SemaCXX/ms-exception-spec.cpp index bda56f5468d4..1be8ec293690 100644 --- a/clang/test/SemaCXX/ms-exception-spec.cpp +++ b/clang/test/SemaCXX/ms-exception-spec.cpp @@ -1,3 +1,4 @@ // RUN: %clang_cc1 %s -fsyntax-only -verify -fms-extensions +// expected-no-diagnostics void f() throw(...) { } diff --git a/clang/test/SemaCXX/new-delete-predefined-decl-2.cpp b/clang/test/SemaCXX/new-delete-predefined-decl-2.cpp index 981476d4fd21..c2dfc77d01fb 100644 --- a/clang/test/SemaCXX/new-delete-predefined-decl-2.cpp +++ b/clang/test/SemaCXX/new-delete-predefined-decl-2.cpp @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s // RUN: %clang_cc1 -DQUALIFIED -fsyntax-only -verify %s +// expected-no-diagnostics // PR5904 void f0(int *ptr) { diff --git a/clang/test/SemaCXX/new-delete-predefined-decl.cpp b/clang/test/SemaCXX/new-delete-predefined-decl.cpp index 20b15b729cd0..ae1006536112 100644 --- a/clang/test/SemaCXX/new-delete-predefined-decl.cpp +++ b/clang/test/SemaCXX/new-delete-predefined-decl.cpp @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -DTEMPLATE_OVERLOAD -fsyntax-only -verify %s // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics #include diff --git a/clang/test/SemaCXX/no-warn-composite-pointer-type.cpp b/clang/test/SemaCXX/no-warn-composite-pointer-type.cpp index b52914a2c33e..d716f45e8df6 100644 --- a/clang/test/SemaCXX/no-warn-composite-pointer-type.cpp +++ b/clang/test/SemaCXX/no-warn-composite-pointer-type.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -Wno-compare-distinct-pointer-type -verify %s +// expected-no-diagnostics // rdar://12501960 void Foo(int **thing, const int **thingMax) diff --git a/clang/test/SemaCXX/nullptr-98.cpp b/clang/test/SemaCXX/nullptr-98.cpp index 0d624c26de70..306b2033e456 100644 --- a/clang/test/SemaCXX/nullptr-98.cpp +++ b/clang/test/SemaCXX/nullptr-98.cpp @@ -1,3 +1,4 @@ // RUN: %clang_cc1 -std=c++98 -fsyntax-only -verify %s +// expected-no-diagnostics void f(void *); void g() { f(__nullptr); } diff --git a/clang/test/SemaCXX/overload-value-dep-arg.cpp b/clang/test/SemaCXX/overload-value-dep-arg.cpp index c1834a722577..763daadc252a 100644 --- a/clang/test/SemaCXX/overload-value-dep-arg.cpp +++ b/clang/test/SemaCXX/overload-value-dep-arg.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics class C { C(void*); diff --git a/clang/test/SemaCXX/overloaded-builtin-operators-0x.cpp b/clang/test/SemaCXX/overloaded-builtin-operators-0x.cpp index 6a5a162af679..bf543892e43d 100644 --- a/clang/test/SemaCXX/overloaded-builtin-operators-0x.cpp +++ b/clang/test/SemaCXX/overloaded-builtin-operators-0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -fshow-overloads=best -std=c++11 -verify %s +// expected-no-diagnostics template struct X diff --git a/clang/test/SemaCXX/pragma-pack.cpp b/clang/test/SemaCXX/pragma-pack.cpp index 5c1d5c6c82af..e468cce7f070 100644 --- a/clang/test/SemaCXX/pragma-pack.cpp +++ b/clang/test/SemaCXX/pragma-pack.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple i686-apple-darwin9 -fsyntax-only -verify %s +// expected-no-diagnostics namespace rdar8745206 { diff --git a/clang/test/SemaCXX/pragma-unused.cpp b/clang/test/SemaCXX/pragma-unused.cpp index c9ddffafafa9..c9eaab6d3f50 100644 --- a/clang/test/SemaCXX/pragma-unused.cpp +++ b/clang/test/SemaCXX/pragma-unused.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -Wunused-parameter -Wunused -verify %s +// expected-no-diagnostics struct S { void m(int x, int y) { diff --git a/clang/test/SemaCXX/prefetch-enum.cpp b/clang/test/SemaCXX/prefetch-enum.cpp index 3c77dae70ff5..5457bbe498ff 100644 --- a/clang/test/SemaCXX/prefetch-enum.cpp +++ b/clang/test/SemaCXX/prefetch-enum.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only %s -verify +// expected-no-diagnostics // PR5679 enum X { A = 3 }; diff --git a/clang/test/SemaCXX/primary-base.cpp b/clang/test/SemaCXX/primary-base.cpp index a6cbbad2427a..0b6aaef493cb 100644 --- a/clang/test/SemaCXX/primary-base.cpp +++ b/clang/test/SemaCXX/primary-base.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics class A { virtual void f(); }; class B : virtual A { }; diff --git a/clang/test/SemaCXX/ptrtomember-overload-resolution.cpp b/clang/test/SemaCXX/ptrtomember-overload-resolution.cpp index 787e33022aa3..85ed0aaa4f9e 100644 --- a/clang/test/SemaCXX/ptrtomember-overload-resolution.cpp +++ b/clang/test/SemaCXX/ptrtomember-overload-resolution.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11 +// expected-no-diagnostics // 13.3.3.2 Ranking implicit conversion sequences // conversion of A::* to B::* is better than conversion of A::* to C::*, diff --git a/clang/test/SemaCXX/qualified-member-enum.cpp b/clang/test/SemaCXX/qualified-member-enum.cpp index 83b0a5911d43..750821bfd81c 100644 --- a/clang/test/SemaCXX/qualified-member-enum.cpp +++ b/clang/test/SemaCXX/qualified-member-enum.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // Check that this doesn't crash. struct A { diff --git a/clang/test/SemaCXX/short-wchar-sign.cpp b/clang/test/SemaCXX/short-wchar-sign.cpp index 9a177c04b104..7ce21c523cd7 100644 --- a/clang/test/SemaCXX/short-wchar-sign.cpp +++ b/clang/test/SemaCXX/short-wchar-sign.cpp @@ -1,6 +1,7 @@ // RUN: %clang_cc1 -triple i386-mingw32 -fsyntax-only -pedantic -verify %s // RUN: %clang_cc1 -fshort-wchar -fsyntax-only -pedantic -verify %s // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -pedantic -verify %s +// expected-no-diagnostics // Check that short wchar_t is unsigned, and that regular wchar_t is not. int test[(wchar_t(-1) typedef struct Point Point; diff --git a/clang/test/SemaCXX/trivial-constructor.cpp b/clang/test/SemaCXX/trivial-constructor.cpp index bda206b61f9a..ed5b526a124d 100644 --- a/clang/test/SemaCXX/trivial-constructor.cpp +++ b/clang/test/SemaCXX/trivial-constructor.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11 +// expected-no-diagnostics struct T1 { }; static_assert(__has_trivial_constructor(T1), "T1 has trivial constructor!"); diff --git a/clang/test/SemaCXX/trivial-destructor.cpp b/clang/test/SemaCXX/trivial-destructor.cpp index db415cf9050a..d3acec6284f5 100644 --- a/clang/test/SemaCXX/trivial-destructor.cpp +++ b/clang/test/SemaCXX/trivial-destructor.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11 +// expected-no-diagnostics struct T1 { }; static_assert(__has_trivial_destructor(T1), "T1 has trivial destructor!"); diff --git a/clang/test/SemaCXX/unused-functions.cpp b/clang/test/SemaCXX/unused-functions.cpp index 359808203892..d05ff4db6055 100644 --- a/clang/test/SemaCXX/unused-functions.cpp +++ b/clang/test/SemaCXX/unused-functions.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -Wunused -verify %s +// expected-no-diagnostics static int foo(int x) { return x; } diff --git a/clang/test/SemaCXX/using-decl-pr4441.cpp b/clang/test/SemaCXX/using-decl-pr4441.cpp index 39a446fed9ac..da21db311bb6 100644 --- a/clang/test/SemaCXX/using-decl-pr4441.cpp +++ b/clang/test/SemaCXX/using-decl-pr4441.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics namespace A { struct B { }; diff --git a/clang/test/SemaCXX/using-decl-pr4450.cpp b/clang/test/SemaCXX/using-decl-pr4450.cpp index 4f929ad15f5f..ba81e93e0b07 100644 --- a/clang/test/SemaCXX/using-decl-pr4450.cpp +++ b/clang/test/SemaCXX/using-decl-pr4450.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics namespace A { void g(); diff --git a/clang/test/SemaCXX/value-dependent-exprs.cpp b/clang/test/SemaCXX/value-dependent-exprs.cpp index 2017ffa67c90..b26ca253b7c0 100644 --- a/clang/test/SemaCXX/value-dependent-exprs.cpp +++ b/clang/test/SemaCXX/value-dependent-exprs.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -verify %s +// expected-no-diagnostics template class C0 { diff --git a/clang/test/SemaCXX/vararg-default-arg.cpp b/clang/test/SemaCXX/vararg-default-arg.cpp index 3c8e41cb3e35..27c2bbbf5b8e 100644 --- a/clang/test/SemaCXX/vararg-default-arg.cpp +++ b/clang/test/SemaCXX/vararg-default-arg.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -verify -fsyntax-only +// expected-no-diagnostics // PR5462 void f1(void); diff --git a/clang/test/SemaCXX/warn-new-overaligned-2.cpp b/clang/test/SemaCXX/warn-new-overaligned-2.cpp index 550500906892..e643015f31b8 100644 --- a/clang/test/SemaCXX/warn-new-overaligned-2.cpp +++ b/clang/test/SemaCXX/warn-new-overaligned-2.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple=x86_64-pc-linux-gnu -Wover-aligned -verify %s +// expected-no-diagnostics // This test verifies that we don't warn when the global operator new is // overridden. That's why we can't merge this with the other test file. diff --git a/clang/test/SemaCXX/warn-self-comparisons.cpp b/clang/test/SemaCXX/warn-self-comparisons.cpp index 620be195c1de..2e8d130bcd5a 100644 --- a/clang/test/SemaCXX/warn-self-comparisons.cpp +++ b/clang/test/SemaCXX/warn-self-comparisons.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics void f(int (&array1)[2], int (&array2)[2]) { if (array1 == array2) { } // no warning diff --git a/clang/test/SemaCXX/zero-length-arrays.cpp b/clang/test/SemaCXX/zero-length-arrays.cpp index 05ded4ad9b3c..d86ab8666d53 100644 --- a/clang/test/SemaCXX/zero-length-arrays.cpp +++ b/clang/test/SemaCXX/zero-length-arrays.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // class Foo { diff --git a/clang/test/SemaObjC/ClassPropertyNotObject.m b/clang/test/SemaObjC/ClassPropertyNotObject.m index 02ed40ae338b..67d76b85e7ab 100644 --- a/clang/test/SemaObjC/ClassPropertyNotObject.m +++ b/clang/test/SemaObjC/ClassPropertyNotObject.m @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s // RUN: %clang_cc1 -x objective-c++ -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics // rdar://10565506 @protocol P @end diff --git a/clang/test/SemaObjC/ContClassPropertyLookup.m b/clang/test/SemaObjC/ContClassPropertyLookup.m index 06a0ffae588c..bf4f6430bae0 100644 --- a/clang/test/SemaObjC/ContClassPropertyLookup.m +++ b/clang/test/SemaObjC/ContClassPropertyLookup.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics @interface MyObject { int _foo; diff --git a/clang/test/SemaObjC/arc-readonly-property-ivar-1.m b/clang/test/SemaObjC/arc-readonly-property-ivar-1.m index c773f26cc113..418f90d38a8b 100644 --- a/clang/test/SemaObjC/arc-readonly-property-ivar-1.m +++ b/clang/test/SemaObjC/arc-readonly-property-ivar-1.m @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -fobjc-default-synthesize-properties -triple x86_64-apple-darwin11 -fobjc-runtime-has-weak -fobjc-arc -fsyntax-only -verify -Wno-objc-root-class %s // RUN: %clang_cc1 -x objective-c++ -fobjc-default-synthesize-properties -triple x86_64-apple-darwin11 -fobjc-runtime-has-weak -fobjc-arc -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics // rdar:// 10558871 @interface PP diff --git a/clang/test/SemaObjC/arc-readonly-property-ivar.m b/clang/test/SemaObjC/arc-readonly-property-ivar.m index 635b9fec71d1..bcc1f4b45b23 100644 --- a/clang/test/SemaObjC/arc-readonly-property-ivar.m +++ b/clang/test/SemaObjC/arc-readonly-property-ivar.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple x86_64-apple-darwin11 -fobjc-runtime-has-weak -fobjc-arc -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics // rdar:// 10558871 @interface PP diff --git a/clang/test/SemaObjC/arc-setter-property-match.m b/clang/test/SemaObjC/arc-setter-property-match.m index 9158b09a47e7..83a07e94f2b9 100644 --- a/clang/test/SemaObjC/arc-setter-property-match.m +++ b/clang/test/SemaObjC/arc-setter-property-match.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple x86_64-apple-darwin11 -fsyntax-only -fobjc-arc -fblocks -verify -Wno-objc-root-class %s +// expected-no-diagnostics // rdar://10156674 @class NSArray; diff --git a/clang/test/SemaObjC/arc-unsafe_unretained.m b/clang/test/SemaObjC/arc-unsafe_unretained.m index a6c5f985df8f..99e870f643a8 100644 --- a/clang/test/SemaObjC/arc-unsafe_unretained.m +++ b/clang/test/SemaObjC/arc-unsafe_unretained.m @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -verify -fblocks %s // RUN: %clang_cc1 -fsyntax-only -verify -fblocks -fobjc-arc %s +// expected-no-diagnostics struct X { __unsafe_unretained id object; diff --git a/clang/test/SemaObjC/attr-cleanup.m b/clang/test/SemaObjC/attr-cleanup.m index 8415c698f348..978498ca64b5 100644 --- a/clang/test/SemaObjC/attr-cleanup.m +++ b/clang/test/SemaObjC/attr-cleanup.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -verify -fsyntax-only +// expected-no-diagnostics @class NSString; diff --git a/clang/test/SemaObjC/block-as-object.m b/clang/test/SemaObjC/block-as-object.m index a85b6067571e..945d6f68d6ea 100644 --- a/clang/test/SemaObjC/block-as-object.m +++ b/clang/test/SemaObjC/block-as-object.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -fsyntax-only -verify -fblocks +// expected-no-diagnostics @interface Whatever - copy; diff --git a/clang/test/SemaObjC/block-ivar.m b/clang/test/SemaObjC/block-ivar.m index c7ea1d96a05b..5864b6350120 100644 --- a/clang/test/SemaObjC/block-ivar.m +++ b/clang/test/SemaObjC/block-ivar.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s -fblocks +// expected-no-diagnostics @interface NSObject { struct objc_object *isa; diff --git a/clang/test/SemaObjC/block-return.m b/clang/test/SemaObjC/block-return.m index 15c3fb64d778..e0bac996d80a 100644 --- a/clang/test/SemaObjC/block-return.m +++ b/clang/test/SemaObjC/block-return.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -verify -fblocks -fobjc-gc-only %s +// expected-no-diagnostics // rdar://8979379 @interface NSString diff --git a/clang/test/SemaObjC/builtin_objc_assign_ivar.m b/clang/test/SemaObjC/builtin_objc_assign_ivar.m index 5839bf444419..6c28178de0ec 100644 --- a/clang/test/SemaObjC/builtin_objc_assign_ivar.m +++ b/clang/test/SemaObjC/builtin_objc_assign_ivar.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -x objective-c %s -fsyntax-only -verify +// expected-no-diagnostics // rdar://9362887 typedef __typeof__(((int*)0)-((int*)0)) ptrdiff_t; diff --git a/clang/test/SemaObjC/builtin_objc_msgSend.m b/clang/test/SemaObjC/builtin_objc_msgSend.m index bf17225a0417..bfa09d9f6cfc 100644 --- a/clang/test/SemaObjC/builtin_objc_msgSend.m +++ b/clang/test/SemaObjC/builtin_objc_msgSend.m @@ -1,3 +1,4 @@ // RUN: %clang_cc1 %s -fsyntax-only -verify +// expected-no-diagnostics // rdar://8632525 extern id objc_msgSend(id self, SEL op, ...); diff --git a/clang/test/SemaObjC/category-method-lookup-2.m b/clang/test/SemaObjC/category-method-lookup-2.m index a31d824d1d45..ed347c7cde0c 100644 --- a/clang/test/SemaObjC/category-method-lookup-2.m +++ b/clang/test/SemaObjC/category-method-lookup-2.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics typedef struct objc_class *Class; @interface NSObject diff --git a/clang/test/SemaObjC/category-method-lookup.m b/clang/test/SemaObjC/category-method-lookup.m index 4223a747947c..6239e948dce4 100644 --- a/clang/test/SemaObjC/category-method-lookup.m +++ b/clang/test/SemaObjC/category-method-lookup.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics @interface Foo @end diff --git a/clang/test/SemaObjC/class-getter-using-dotsyntax.m b/clang/test/SemaObjC/class-getter-using-dotsyntax.m index 4ff9428e9637..dd384b510833 100644 --- a/clang/test/SemaObjC/class-getter-using-dotsyntax.m +++ b/clang/test/SemaObjC/class-getter-using-dotsyntax.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics typedef struct objc_class *Class; diff --git a/clang/test/SemaObjC/class-property-access.m b/clang/test/SemaObjC/class-property-access.m index c46d3fb397ce..735b51a3c432 100644 --- a/clang/test/SemaObjC/class-property-access.m +++ b/clang/test/SemaObjC/class-property-access.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @interface Test {} + (Test*)one; diff --git a/clang/test/SemaObjC/class-protocol.m b/clang/test/SemaObjC/class-protocol.m index 91cd1389f1e6..021047e12052 100644 --- a/clang/test/SemaObjC/class-protocol.m +++ b/clang/test/SemaObjC/class-protocol.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // pr5552 @interface Protocol diff --git a/clang/test/SemaObjC/comptypes-2.m b/clang/test/SemaObjC/comptypes-2.m index 74e42c96137d..8e90455de664 100644 --- a/clang/test/SemaObjC/comptypes-2.m +++ b/clang/test/SemaObjC/comptypes-2.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics #define nil (void *)0; #define Nil (void *)0; diff --git a/clang/test/SemaObjC/comptypes-8.m b/clang/test/SemaObjC/comptypes-8.m index 750b0a6a5a97..e65103068911 100644 --- a/clang/test/SemaObjC/comptypes-8.m +++ b/clang/test/SemaObjC/comptypes-8.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @protocol MyProtocol @end diff --git a/clang/test/SemaObjC/conditional-expr-5.m b/clang/test/SemaObjC/conditional-expr-5.m index 47aed3e6a579..b1f7e5996947 100644 --- a/clang/test/SemaObjC/conditional-expr-5.m +++ b/clang/test/SemaObjC/conditional-expr-5.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics @interface PBXBuildSettingsDictionary { diff --git a/clang/test/SemaObjC/conditional-expr-6.m b/clang/test/SemaObjC/conditional-expr-6.m index 098688a8a90a..e944e540b2fc 100644 --- a/clang/test/SemaObjC/conditional-expr-6.m +++ b/clang/test/SemaObjC/conditional-expr-6.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @protocol MyProtocol @end diff --git a/clang/test/SemaObjC/conditional-expr-7.m b/clang/test/SemaObjC/conditional-expr-7.m index 3ddf3d73566a..5b4a8632b27f 100644 --- a/clang/test/SemaObjC/conditional-expr-7.m +++ b/clang/test/SemaObjC/conditional-expr-7.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // radar 7682116 @interface Super @end diff --git a/clang/test/SemaObjC/conditional-expr-8.m b/clang/test/SemaObjC/conditional-expr-8.m index 6799983e3b16..beddd205a907 100644 --- a/clang/test/SemaObjC/conditional-expr-8.m +++ b/clang/test/SemaObjC/conditional-expr-8.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // rdar://9296866 @interface NSResponder diff --git a/clang/test/SemaObjC/conflict-nonfragile-abi2.m b/clang/test/SemaObjC/conflict-nonfragile-abi2.m index 819732758d27..d0d6be84a65e 100644 --- a/clang/test/SemaObjC/conflict-nonfragile-abi2.m +++ b/clang/test/SemaObjC/conflict-nonfragile-abi2.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -verify -fsyntax-only -Wno-objc-root-class %s +// expected-no-diagnostics // rdar://8225011 int glob; diff --git a/clang/test/SemaObjC/delay-parsing-cfunctions.m b/clang/test/SemaObjC/delay-parsing-cfunctions.m index a6f66fe1bd38..c74b054f74d4 100644 --- a/clang/test/SemaObjC/delay-parsing-cfunctions.m +++ b/clang/test/SemaObjC/delay-parsing-cfunctions.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -Werror -verify -Wno-objc-root-class %s +// expected-no-diagnostics // rdar://10387088 @interface MyClass diff --git a/clang/test/SemaObjC/direct-synthesized-ivar-access.m b/clang/test/SemaObjC/direct-synthesized-ivar-access.m index dc1491173aae..a276a64913b3 100644 --- a/clang/test/SemaObjC/direct-synthesized-ivar-access.m +++ b/clang/test/SemaObjC/direct-synthesized-ivar-access.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -fobjc-default-synthesize-properties -verify -Wno-objc-root-class %s +// expected-no-diagnostics // rdar://8673791 // rdar://9943851 diff --git a/clang/test/SemaObjC/enhanced-proto-2.m b/clang/test/SemaObjC/enhanced-proto-2.m index 28b03d93e2d2..352f29160e53 100644 --- a/clang/test/SemaObjC/enhanced-proto-2.m +++ b/clang/test/SemaObjC/enhanced-proto-2.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -verify -Wno-objc-root-class %s +// expected-no-diagnostics @protocol MyProto1 @optional diff --git a/clang/test/SemaObjC/enum-fixed-type.m b/clang/test/SemaObjC/enum-fixed-type.m index 95153bedb3db..4fe643faef2f 100644 --- a/clang/test/SemaObjC/enum-fixed-type.m +++ b/clang/test/SemaObjC/enum-fixed-type.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics #if !__has_feature(objc_fixed_enum) # error Enumerations with a fixed underlying type are not supported diff --git a/clang/test/SemaObjC/getter-setter-defined-in-category-of-parent.m b/clang/test/SemaObjC/getter-setter-defined-in-category-of-parent.m index 71c3237425bd..ff5c17446680 100644 --- a/clang/test/SemaObjC/getter-setter-defined-in-category-of-parent.m +++ b/clang/test/SemaObjC/getter-setter-defined-in-category-of-parent.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics @interface MyParent { int X; diff --git a/clang/test/SemaObjC/id_builtin.m b/clang/test/SemaObjC/id_builtin.m index a1431d60abe3..be42e7d7c564 100644 --- a/clang/test/SemaObjC/id_builtin.m +++ b/clang/test/SemaObjC/id_builtin.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -fsyntax-only -verify +// expected-no-diagnostics // id is now builtin. There should be no errors. id obj; diff --git a/clang/test/SemaObjC/ignore-qualifier-on-qualified-id.m b/clang/test/SemaObjC/ignore-qualifier-on-qualified-id.m index 36a2c1ad873d..996664f6a9e0 100644 --- a/clang/test/SemaObjC/ignore-qualifier-on-qualified-id.m +++ b/clang/test/SemaObjC/ignore-qualifier-on-qualified-id.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://10667659 @protocol NSCopying @end diff --git a/clang/test/SemaObjC/ignore-weakimport-method.m b/clang/test/SemaObjC/ignore-weakimport-method.m index d71cebf2c79a..c68c57830a9a 100644 --- a/clang/test/SemaObjC/ignore-weakimport-method.m +++ b/clang/test/SemaObjC/ignore-weakimport-method.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @interface foo + (void) cx __attribute__((weak_import)); - (void) x __attribute__((weak_import)); diff --git a/clang/test/SemaObjC/interface-layout-2.m b/clang/test/SemaObjC/interface-layout-2.m index 02b14035a223..17e34d4681bd 100644 --- a/clang/test/SemaObjC/interface-layout-2.m +++ b/clang/test/SemaObjC/interface-layout-2.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -fsyntax-only -verify +// expected-no-diagnostics @interface A { int ivar; diff --git a/clang/test/SemaObjC/interface-layout.m b/clang/test/SemaObjC/interface-layout.m index 336605a7812e..9b083b0154e1 100644 --- a/clang/test/SemaObjC/interface-layout.m +++ b/clang/test/SemaObjC/interface-layout.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -fsyntax-only -verify -triple i386-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 +// expected-no-diagnostics typedef struct objc_object {} *id; typedef signed char BOOL; typedef unsigned int NSUInteger; diff --git a/clang/test/SemaObjC/interface-scope-2.m b/clang/test/SemaObjC/interface-scope-2.m index 60fd900285d0..ffd740f7fc44 100644 --- a/clang/test/SemaObjC/interface-scope-2.m +++ b/clang/test/SemaObjC/interface-scope-2.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -triple i686-apple-darwin9 -Wno-objc-root-class %s +// expected-no-diagnostics // FIXME: must also compile as Objective-C++ // diff --git a/clang/test/SemaObjC/interface-scope.m b/clang/test/SemaObjC/interface-scope.m index 0671dae61e82..9875eca5bf16 100644 --- a/clang/test/SemaObjC/interface-scope.m +++ b/clang/test/SemaObjC/interface-scope.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @interface I1 { @private diff --git a/clang/test/SemaObjC/ivar-access-package.m b/clang/test/SemaObjC/ivar-access-package.m index abc3420f1bd2..ff5ff4e68aec 100644 --- a/clang/test/SemaObjC/ivar-access-package.m +++ b/clang/test/SemaObjC/ivar-access-package.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics typedef unsigned char BOOL; diff --git a/clang/test/SemaObjC/method-conflict-1.m b/clang/test/SemaObjC/method-conflict-1.m index ca91ebdef237..654cd0166fb5 100644 --- a/clang/test/SemaObjC/method-conflict-1.m +++ b/clang/test/SemaObjC/method-conflict-1.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics // This test case tests the default behavior. diff --git a/clang/test/SemaObjC/method-in-class-extension-impl.m b/clang/test/SemaObjC/method-in-class-extension-impl.m index c205322dec9d..d74ae8f154fd 100644 --- a/clang/test/SemaObjC/method-in-class-extension-impl.m +++ b/clang/test/SemaObjC/method-in-class-extension-impl.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // rdar://8530080 @protocol ViewDelegate @end diff --git a/clang/test/SemaObjC/method-lookup-2.m b/clang/test/SemaObjC/method-lookup-2.m index 53cae8371252..25963048f749 100644 --- a/clang/test/SemaObjC/method-lookup-2.m +++ b/clang/test/SemaObjC/method-lookup-2.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics typedef signed char BOOL; @protocol NSObject diff --git a/clang/test/SemaObjC/method-lookup-4.m b/clang/test/SemaObjC/method-lookup-4.m index 700565e78329..807d4dae36b5 100644 --- a/clang/test/SemaObjC/method-lookup-4.m +++ b/clang/test/SemaObjC/method-lookup-4.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @interface NSObject {} diff --git a/clang/test/SemaObjC/nested-typedef-decl.m b/clang/test/SemaObjC/nested-typedef-decl.m index bb01eadba94b..7051ac689cc0 100644 --- a/clang/test/SemaObjC/nested-typedef-decl.m +++ b/clang/test/SemaObjC/nested-typedef-decl.m @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -x objective-c -fsyntax-only -verify -Wno-objc-root-class %s // RUN: %clang_cc1 -x objective-c++ -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics // rdar://10041908 @interface Bar { diff --git a/clang/test/SemaObjC/no-gc-weak-test.m b/clang/test/SemaObjC/no-gc-weak-test.m index dd9b73cc0de3..6539a9b7f149 100644 --- a/clang/test/SemaObjC/no-gc-weak-test.m +++ b/clang/test/SemaObjC/no-gc-weak-test.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple i386-apple-darwin9 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics @interface Subtask { diff --git a/clang/test/SemaObjC/no-ivar-access-control.m b/clang/test/SemaObjC/no-ivar-access-control.m index 6f00b1a367c7..9bbff24be990 100644 --- a/clang/test/SemaObjC/no-ivar-access-control.m +++ b/clang/test/SemaObjC/no-ivar-access-control.m @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -fsyntax-only -fdebugger-support -verify -Wno-objc-root-class %s // RUN: %clang_cc1 -x objective-c++ -fdebugger-support -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics // rdar://10997647 @interface I diff --git a/clang/test/SemaObjC/no-warn-qual-mismatch.m b/clang/test/SemaObjC/no-warn-qual-mismatch.m index 1e3c18636674..9638da46c18f 100644 --- a/clang/test/SemaObjC/no-warn-qual-mismatch.m +++ b/clang/test/SemaObjC/no-warn-qual-mismatch.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics // radar 7211563 @interface X diff --git a/clang/test/SemaObjC/no-warn-synth-protocol-meth.m b/clang/test/SemaObjC/no-warn-synth-protocol-meth.m index 103f6bbd02ed..cdb855e15473 100644 --- a/clang/test/SemaObjC/no-warn-synth-protocol-meth.m +++ b/clang/test/SemaObjC/no-warn-synth-protocol-meth.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics @protocol CYCdef - (int)name; diff --git a/clang/test/SemaObjC/no-warn-unimpl-method.m b/clang/test/SemaObjC/no-warn-unimpl-method.m index dd6e3ad4aa32..174f70a4ee5c 100644 --- a/clang/test/SemaObjC/no-warn-unimpl-method.m +++ b/clang/test/SemaObjC/no-warn-unimpl-method.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -verify %s +// expected-no-diagnostics // This program tests that if class implements the forwardInvocation method, then // every method possible is implemented in the class and should not issue // warning of the "Method definition not found" kind. */ diff --git a/clang/test/SemaObjC/no-warning-unavail-unimp.m b/clang/test/SemaObjC/no-warning-unavail-unimp.m index 88d519d115c4..d5a4eac99067 100644 --- a/clang/test/SemaObjC/no-warning-unavail-unimp.m +++ b/clang/test/SemaObjC/no-warning-unavail-unimp.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics // rdar://9651605 @interface Foo diff --git a/clang/test/SemaObjC/nowarn-superclass-method-mismatch.m b/clang/test/SemaObjC/nowarn-superclass-method-mismatch.m index b211cdea37b0..d522e899eb0b 100644 --- a/clang/test/SemaObjC/nowarn-superclass-method-mismatch.m +++ b/clang/test/SemaObjC/nowarn-superclass-method-mismatch.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -fobjc-arc -fobjc-runtime-has-weak -Wsuper-class-method-mismatch -verify %s +// expected-no-diagnostics // rdar://11793793 @class NSString; diff --git a/clang/test/SemaObjC/nsobject-attribute-1.m b/clang/test/SemaObjC/nsobject-attribute-1.m index 72d8fa693a9b..4a75f5ce8efa 100644 --- a/clang/test/SemaObjC/nsobject-attribute-1.m +++ b/clang/test/SemaObjC/nsobject-attribute-1.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fblocks -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics @interface NSObject - (id)self; diff --git a/clang/test/SemaObjC/objc-buffered-methods.m b/clang/test/SemaObjC/objc-buffered-methods.m index a4b83be0cd70..55e489798d77 100644 --- a/clang/test/SemaObjC/objc-buffered-methods.m +++ b/clang/test/SemaObjC/objc-buffered-methods.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics // rdar://8843851 int* global; diff --git a/clang/test/SemaObjC/objc-qualified-property-lookup.m b/clang/test/SemaObjC/objc-qualified-property-lookup.m index 48b28cb05ca5..b5cadbd6037f 100644 --- a/clang/test/SemaObjC/objc-qualified-property-lookup.m +++ b/clang/test/SemaObjC/objc-qualified-property-lookup.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics // rdar://9078584 @interface NSObject @end diff --git a/clang/test/SemaObjC/overriding-property-in-class-extension.m b/clang/test/SemaObjC/overriding-property-in-class-extension.m index 5cbc6d2ceb72..77efd556928c 100644 --- a/clang/test/SemaObjC/overriding-property-in-class-extension.m +++ b/clang/test/SemaObjC/overriding-property-in-class-extension.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Weverything %s +// expected-no-diagnostics // rdar://12103434 @class NSString; diff --git a/clang/test/SemaObjC/pedantic-dynamic-test.m b/clang/test/SemaObjC/pedantic-dynamic-test.m index 61f36b333826..1fc5ef66b88a 100644 --- a/clang/test/SemaObjC/pedantic-dynamic-test.m +++ b/clang/test/SemaObjC/pedantic-dynamic-test.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -pedantic -Wno-objc-root-class %s +// expected-no-diagnostics // rdar: // 7860960 @interface I diff --git a/clang/test/SemaObjC/pragma-pack.m b/clang/test/SemaObjC/pragma-pack.m index ba39257fcd50..6869bca90d0a 100644 --- a/clang/test/SemaObjC/pragma-pack.m +++ b/clang/test/SemaObjC/pragma-pack.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple i686-apple-darwin9 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics // Make sure pragma pack works inside ObjC methods. @interface X diff --git a/clang/test/SemaObjC/property-11.m b/clang/test/SemaObjC/property-11.m index 297611574eae..e41a840c9224 100644 --- a/clang/test/SemaObjC/property-11.m +++ b/clang/test/SemaObjC/property-11.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @interface NSSound @end diff --git a/clang/test/SemaObjC/property-13.m b/clang/test/SemaObjC/property-13.m index 2ca341652686..362d6d3b15d1 100644 --- a/clang/test/SemaObjC/property-13.m +++ b/clang/test/SemaObjC/property-13.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s -Wno-unreachable-code +// expected-no-diagnostics @interface NSObject + alloc; diff --git a/clang/test/SemaObjC/property-2.m b/clang/test/SemaObjC/property-2.m index f95af5990275..3298ee5766e2 100644 --- a/clang/test/SemaObjC/property-2.m +++ b/clang/test/SemaObjC/property-2.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics @interface Tester @property char PropertyAtomic_char; diff --git a/clang/test/SemaObjC/property-6.m b/clang/test/SemaObjC/property-6.m index 933a4f0673f8..f2a293ec5ea4 100644 --- a/clang/test/SemaObjC/property-6.m +++ b/clang/test/SemaObjC/property-6.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -fobjc-exceptions %s +// expected-no-diagnostics # 1 "" # 1 "/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h" 1 3 typedef signed char BOOL; diff --git a/clang/test/SemaObjC/property-7.m b/clang/test/SemaObjC/property-7.m index e6cba50f7a61..3d03b8f680d3 100644 --- a/clang/test/SemaObjC/property-7.m +++ b/clang/test/SemaObjC/property-7.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics typedef signed char BOOL; typedef struct _NSZone NSZone; diff --git a/clang/test/SemaObjC/property-8.m b/clang/test/SemaObjC/property-8.m index 8647aba8c3e7..da97ffcb7ed0 100644 --- a/clang/test/SemaObjC/property-8.m +++ b/clang/test/SemaObjC/property-8.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics typedef signed char BOOL; typedef unsigned int NSUInteger; typedef struct _NSZone NSZone; diff --git a/clang/test/SemaObjC/property-9-impl-method.m b/clang/test/SemaObjC/property-9-impl-method.m index 84eb3635e2ac..d6220f66fa9a 100644 --- a/clang/test/SemaObjC/property-9-impl-method.m +++ b/clang/test/SemaObjC/property-9-impl-method.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -fsyntax-only -verify +// expected-no-diagnostics // rdar://5967199 typedef signed char BOOL; diff --git a/clang/test/SemaObjC/property-and-ivar-use.m b/clang/test/SemaObjC/property-and-ivar-use.m index 5b40d854898e..a9974945b2c0 100644 --- a/clang/test/SemaObjC/property-and-ivar-use.m +++ b/clang/test/SemaObjC/property-and-ivar-use.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics // Do not issue error if 'ivar' used previously belongs to the inherited class // and has same name as @dynalic property in current class. diff --git a/clang/test/SemaObjC/property-dot-receiver.m b/clang/test/SemaObjC/property-dot-receiver.m index c5a928b4e892..4a5f1959dc0e 100644 --- a/clang/test/SemaObjC/property-dot-receiver.m +++ b/clang/test/SemaObjC/property-dot-receiver.m @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s // RUN: %clang_cc1 -x objective-c++ -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics // rdar://8962253 @interface Singleton { diff --git a/clang/test/SemaObjC/property-method-lookup-impl.m b/clang/test/SemaObjC/property-method-lookup-impl.m index 19d4e684944a..dc490edb1fdc 100644 --- a/clang/test/SemaObjC/property-method-lookup-impl.m +++ b/clang/test/SemaObjC/property-method-lookup-impl.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics @interface SSyncCEList { diff --git a/clang/test/SemaObjC/property-nonfragile-abi.m b/clang/test/SemaObjC/property-nonfragile-abi.m index 55bf91f383d4..3684cb00ebb4 100644 --- a/clang/test/SemaObjC/property-nonfragile-abi.m +++ b/clang/test/SemaObjC/property-nonfragile-abi.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics typedef signed char BOOL; diff --git a/clang/test/SemaObjC/property-noprotocol-warning.m b/clang/test/SemaObjC/property-noprotocol-warning.m index 71bb86a301ef..e4752c52bc99 100644 --- a/clang/test/SemaObjC/property-noprotocol-warning.m +++ b/clang/test/SemaObjC/property-noprotocol-warning.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @interface Object diff --git a/clang/test/SemaObjC/property-redundant-decl-accessor.m b/clang/test/SemaObjC/property-redundant-decl-accessor.m index 3b0e825b9d8c..6ff2ceab7ea2 100644 --- a/clang/test/SemaObjC/property-redundant-decl-accessor.m +++ b/clang/test/SemaObjC/property-redundant-decl-accessor.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -Werror -verify -Wno-objc-root-class %s +// expected-no-diagnostics @interface MyClass { const char *_myName; diff --git a/clang/test/SemaObjC/property-weak.m b/clang/test/SemaObjC/property-weak.m index a4397a684fc0..d57774bf0fec 100644 --- a/clang/test/SemaObjC/property-weak.m +++ b/clang/test/SemaObjC/property-weak.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple i386-apple-darwin9 -fsyntax-only -verify %s +// expected-no-diagnostics @interface foo @property(nonatomic) int foo __attribute__((weak_import)); diff --git a/clang/test/SemaObjC/props-on-prots.m b/clang/test/SemaObjC/props-on-prots.m index c01e8338628e..6962d6f895c9 100644 --- a/clang/test/SemaObjC/props-on-prots.m +++ b/clang/test/SemaObjC/props-on-prots.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics typedef signed char BOOL; @class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator; diff --git a/clang/test/SemaObjC/protocol-expr-1.m b/clang/test/SemaObjC/protocol-expr-1.m index fe01d1d47a8d..94a0d9e3e8b5 100644 --- a/clang/test/SemaObjC/protocol-expr-1.m +++ b/clang/test/SemaObjC/protocol-expr-1.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @protocol fproto; diff --git a/clang/test/SemaObjC/protocol-implementation-inherited.m b/clang/test/SemaObjC/protocol-implementation-inherited.m index c333bb5042d2..45010d5e2e75 100644 --- a/clang/test/SemaObjC/protocol-implementation-inherited.m +++ b/clang/test/SemaObjC/protocol-implementation-inherited.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @protocol P0 -bar; diff --git a/clang/test/SemaObjC/protocol-lookup-2.m b/clang/test/SemaObjC/protocol-lookup-2.m index bf0752312e44..9e8ed8a627b9 100644 --- a/clang/test/SemaObjC/protocol-lookup-2.m +++ b/clang/test/SemaObjC/protocol-lookup-2.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @interface NSObject @end @protocol ProtocolA diff --git a/clang/test/SemaObjC/protocol-lookup.m b/clang/test/SemaObjC/protocol-lookup.m index ed3fbe0f72bf..26718ae2eaa1 100644 --- a/clang/test/SemaObjC/protocol-lookup.m +++ b/clang/test/SemaObjC/protocol-lookup.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @protocol NSObject - retain; - release; diff --git a/clang/test/SemaObjC/protocol-qualified-class-unsupported.m b/clang/test/SemaObjC/protocol-qualified-class-unsupported.m index 4bf6b289e7b7..777084d8554b 100644 --- a/clang/test/SemaObjC/protocol-qualified-class-unsupported.m +++ b/clang/test/SemaObjC/protocol-qualified-class-unsupported.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics #include diff --git a/clang/test/SemaObjC/rdar6248119.m b/clang/test/SemaObjC/rdar6248119.m index 046992c52fe5..a49597839129 100644 --- a/clang/test/SemaObjC/rdar6248119.m +++ b/clang/test/SemaObjC/rdar6248119.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only %s -verify -fobjc-exceptions +// expected-no-diagnostics // Test case for: // @finally doesn't introduce a new scope diff --git a/clang/test/SemaObjC/restrict-id-type.m b/clang/test/SemaObjC/restrict-id-type.m index b24fcb0185e4..24f74c93a027 100644 --- a/clang/test/SemaObjC/restrict-id-type.m +++ b/clang/test/SemaObjC/restrict-id-type.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=gnu99 -fsyntax-only -verify %s +// expected-no-diagnostics void f0(restrict id a0) {} diff --git a/clang/test/SemaObjC/selector-1.m b/clang/test/SemaObjC/selector-1.m index 16d44cbb5515..186e19fead83 100644 --- a/clang/test/SemaObjC/selector-1.m +++ b/clang/test/SemaObjC/selector-1.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -verify %s +// expected-no-diagnostics @interface I - (id) compare: (char) arg1; diff --git a/clang/test/SemaObjC/selector-2.m b/clang/test/SemaObjC/selector-2.m index fb75369a9a10..17d1872cc7ea 100644 --- a/clang/test/SemaObjC/selector-2.m +++ b/clang/test/SemaObjC/selector-2.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -Wselector -verify %s +// expected-no-diagnostics // rdar://8851684 @interface I - length; diff --git a/clang/test/SemaObjC/self-declared-in-block.m b/clang/test/SemaObjC/self-declared-in-block.m index 40a03313b693..36a9ef571d5a 100644 --- a/clang/test/SemaObjC/self-declared-in-block.m +++ b/clang/test/SemaObjC/self-declared-in-block.m @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -fsyntax-only -triple x86_64-apple-darwin10 -fblocks -verify -Wno-objc-root-class %s // RUN: %clang_cc1 -x objective-c++ -fsyntax-only -triple x86_64-apple-darwin10 -fblocks -verify -Wno-objc-root-class %s +// expected-no-diagnostics // rdar://9154582 @interface Blocky @end diff --git a/clang/test/SemaObjC/self-in-function.m b/clang/test/SemaObjC/self-in-function.m index 9027a947a03c..a14ad909dde3 100644 --- a/clang/test/SemaObjC/self-in-function.m +++ b/clang/test/SemaObjC/self-in-function.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -fblocks -verify %s +// expected-no-diagnostics // rdar://9181463 typedef struct objc_class *Class; diff --git a/clang/test/SemaObjC/setter-dotsyntax.m b/clang/test/SemaObjC/setter-dotsyntax.m index e0b51e8b51c6..ec47ee2a8e9f 100644 --- a/clang/test/SemaObjC/setter-dotsyntax.m +++ b/clang/test/SemaObjC/setter-dotsyntax.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // rdar://8528170 @interface NSObject @end diff --git a/clang/test/SemaObjC/super-cat-prot.m b/clang/test/SemaObjC/super-cat-prot.m index 3e289860c06e..fd9399499ec7 100644 --- a/clang/test/SemaObjC/super-cat-prot.m +++ b/clang/test/SemaObjC/super-cat-prot.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics typedef signed char BOOL; typedef unsigned int NSUInteger; @class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator; diff --git a/clang/test/SemaObjC/super-property-message-expr.m b/clang/test/SemaObjC/super-property-message-expr.m index c25164e15973..81b8f8fa1d6c 100644 --- a/clang/test/SemaObjC/super-property-message-expr.m +++ b/clang/test/SemaObjC/super-property-message-expr.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @interface SStoreNodeInfo diff --git a/clang/test/SemaObjC/super-property-notation.m b/clang/test/SemaObjC/super-property-notation.m index 7d3f7c70bb52..0c17bb9392ec 100644 --- a/clang/test/SemaObjC/super-property-notation.m +++ b/clang/test/SemaObjC/super-property-notation.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @interface B +(int) classGetter; diff --git a/clang/test/SemaObjC/synth-provisional-ivars-1.m b/clang/test/SemaObjC/synth-provisional-ivars-1.m index 0e155f4840f0..92a9d7165f13 100644 --- a/clang/test/SemaObjC/synth-provisional-ivars-1.m +++ b/clang/test/SemaObjC/synth-provisional-ivars-1.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -fobjc-default-synthesize-properties -verify -Wno-objc-root-class %s +// expected-no-diagnostics // rdar://8913053 typedef unsigned char BOOL; diff --git a/clang/test/SemaObjC/synthesize-setter-contclass.m b/clang/test/SemaObjC/synthesize-setter-contclass.m index d75441518725..df954db2dbb5 100644 --- a/clang/test/SemaObjC/synthesize-setter-contclass.m +++ b/clang/test/SemaObjC/synthesize-setter-contclass.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics @interface TestClass { diff --git a/clang/test/SemaObjC/transparent-union.m b/clang/test/SemaObjC/transparent-union.m index 6f2dbf915ac0..bda0a54bb63f 100644 --- a/clang/test/SemaObjC/transparent-union.m +++ b/clang/test/SemaObjC/transparent-union.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics typedef union { struct xx_object_s *_do; diff --git a/clang/test/SemaObjC/ucn-objc-string.m b/clang/test/SemaObjC/ucn-objc-string.m index 6070278bb134..f80d1ffb9156 100644 --- a/clang/test/SemaObjC/ucn-objc-string.m +++ b/clang/test/SemaObjC/ucn-objc-string.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -verify -fsyntax-only +// expected-no-diagnostics @class NSString; extern void NSLog(NSString *format, ...) __attribute__((format(__NSString__, 1, 2))); diff --git a/clang/test/SemaObjC/va-method-1.m b/clang/test/SemaObjC/va-method-1.m index fe7ccd7632cd..4959df31990f 100644 --- a/clang/test/SemaObjC/va-method-1.m +++ b/clang/test/SemaObjC/va-method-1.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics #include diff --git a/clang/test/SemaObjC/writable-property-in-superclass.m b/clang/test/SemaObjC/writable-property-in-superclass.m index bbd1f16cffc0..99be5413d7ae 100644 --- a/clang/test/SemaObjC/writable-property-in-superclass.m +++ b/clang/test/SemaObjC/writable-property-in-superclass.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @interface MessageStore @property (assign, readonly) int P; diff --git a/clang/test/SemaObjCXX/arc-bool-conversion.mm b/clang/test/SemaObjCXX/arc-bool-conversion.mm index d8f840e871e5..12a3be3022bb 100644 --- a/clang/test/SemaObjCXX/arc-bool-conversion.mm +++ b/clang/test/SemaObjCXX/arc-bool-conversion.mm @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -fobjc-arc -verify -fblocks -triple x86_64-apple-darwin10.0.0 %s +// expected-no-diagnostics // rdar://9310049 bool fn(id obj) { diff --git a/clang/test/SemaObjCXX/arc-libstdcxx.mm b/clang/test/SemaObjCXX/arc-libstdcxx.mm index 71771b4b1375..537e6b427970 100644 --- a/clang/test/SemaObjCXX/arc-libstdcxx.mm +++ b/clang/test/SemaObjCXX/arc-libstdcxx.mm @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -fobjc-arc -fobjc-arc-cxxlib=libstdc++ -fobjc-runtime-has-weak -verify %s +// expected-no-diagnostics @interface A @end diff --git a/clang/test/SemaObjCXX/arc-memfunc.mm b/clang/test/SemaObjCXX/arc-memfunc.mm index 274f873fd48a..09556e396cdd 100644 --- a/clang/test/SemaObjCXX/arc-memfunc.mm +++ b/clang/test/SemaObjCXX/arc-memfunc.mm @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -fobjc-arc -verify -fblocks %s +// expected-no-diagnostics struct X0 { static id makeObject1() __attribute__((ns_returns_retained)); diff --git a/clang/test/SemaObjCXX/arc-type-traits.mm b/clang/test/SemaObjCXX/arc-type-traits.mm index 67bab00cf978..12993a910e54 100644 --- a/clang/test/SemaObjCXX/arc-type-traits.mm +++ b/clang/test/SemaObjCXX/arc-type-traits.mm @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -fobjc-arc -fobjc-runtime-has-weak -verify -std=c++11 %s +// expected-no-diagnostics // Check the results of the various type-trait query functions on // lifetime-qualified types in ARC. diff --git a/clang/test/SemaObjCXX/argument-dependent-lookup.mm b/clang/test/SemaObjCXX/argument-dependent-lookup.mm index a25cc68888d7..244c3f7d0193 100644 --- a/clang/test/SemaObjCXX/argument-dependent-lookup.mm +++ b/clang/test/SemaObjCXX/argument-dependent-lookup.mm @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // : For the purposes of Argument-Dependent // Lookup, Objective-C classes are considered to be in the global diff --git a/clang/test/SemaObjCXX/composite-objc-pointertype.mm b/clang/test/SemaObjCXX/composite-objc-pointertype.mm index 684f633f71cc..35739a893624 100644 --- a/clang/test/SemaObjCXX/composite-objc-pointertype.mm +++ b/clang/test/SemaObjCXX/composite-objc-pointertype.mm @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics @interface Foo @end diff --git a/clang/test/SemaObjCXX/conversion-ranking.mm b/clang/test/SemaObjCXX/conversion-ranking.mm index 6c1408bf21f6..b34c9a24ed5a 100644 --- a/clang/test/SemaObjCXX/conversion-ranking.mm +++ b/clang/test/SemaObjCXX/conversion-ranking.mm @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @protocol P1 @end diff --git a/clang/test/SemaObjCXX/conversion-to-objc-pointer-2.mm b/clang/test/SemaObjCXX/conversion-to-objc-pointer-2.mm index b03d4d89e920..063ce3275913 100644 --- a/clang/test/SemaObjCXX/conversion-to-objc-pointer-2.mm +++ b/clang/test/SemaObjCXX/conversion-to-objc-pointer-2.mm @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // rdar: // 7963410 @protocol NSObject @end diff --git a/clang/test/SemaObjCXX/conversion-to-objc-pointer.mm b/clang/test/SemaObjCXX/conversion-to-objc-pointer.mm index 235aaac8d09c..41bb4ff37a0a 100644 --- a/clang/test/SemaObjCXX/conversion-to-objc-pointer.mm +++ b/clang/test/SemaObjCXX/conversion-to-objc-pointer.mm @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // rdar: // 7963410 template diff --git a/clang/test/SemaObjCXX/debugger-support.mm b/clang/test/SemaObjCXX/debugger-support.mm index 1fb18b9c341a..e8e382a1b3b2 100644 --- a/clang/test/SemaObjCXX/debugger-support.mm +++ b/clang/test/SemaObjCXX/debugger-support.mm @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fdebugger-support -fsyntax-only -verify %s +// expected-no-diagnostics @class NSString; void testCompareAgainstPtr(int *ptr, NSString *ns) { diff --git a/clang/test/SemaObjCXX/delay-parsing-cfunctions.mm b/clang/test/SemaObjCXX/delay-parsing-cfunctions.mm index fa65dbea9ece..4035d00b8a45 100644 --- a/clang/test/SemaObjCXX/delay-parsing-cfunctions.mm +++ b/clang/test/SemaObjCXX/delay-parsing-cfunctions.mm @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -x objective-c++ -std=c++11 -fsyntax-only -Werror -verify -Wno-objc-root-class %s +// expected-no-diagnostics // rdar://10387088 struct X { diff --git a/clang/test/SemaObjCXX/delay-parsing-cplusfuncs.mm b/clang/test/SemaObjCXX/delay-parsing-cplusfuncs.mm index b0227099c1e2..d0d7922252e6 100644 --- a/clang/test/SemaObjCXX/delay-parsing-cplusfuncs.mm +++ b/clang/test/SemaObjCXX/delay-parsing-cplusfuncs.mm @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -x objective-c++ -fsyntax-only -Werror -verify -Wno-objc-root-class %s +// expected-no-diagnostics // rdar://10387088 @interface MyClass diff --git a/clang/test/SemaObjCXX/delay-parsing-func-tryblock.mm b/clang/test/SemaObjCXX/delay-parsing-func-tryblock.mm index 8cf615ec3264..ecee7be629c3 100644 --- a/clang/test/SemaObjCXX/delay-parsing-func-tryblock.mm +++ b/clang/test/SemaObjCXX/delay-parsing-func-tryblock.mm @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -x objective-c++ -fcxx-exceptions -fsyntax-only -Werror -verify -Wno-objc-root-class %s +// expected-no-diagnostics // rdar://10387088 @interface MyClass diff --git a/clang/test/SemaObjCXX/expr-objcxx.mm b/clang/test/SemaObjCXX/expr-objcxx.mm index e70a001b7041..8ea4dabe16dd 100644 --- a/clang/test/SemaObjCXX/expr-objcxx.mm +++ b/clang/test/SemaObjCXX/expr-objcxx.mm @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only +// expected-no-diagnostics // rdar://8366474 void *P = @selector(foo::bar::); diff --git a/clang/test/SemaObjCXX/function-pointer-void-star.mm b/clang/test/SemaObjCXX/function-pointer-void-star.mm index 8d3d6251734f..7c8321538d62 100644 --- a/clang/test/SemaObjCXX/function-pointer-void-star.mm +++ b/clang/test/SemaObjCXX/function-pointer-void-star.mm @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics extern "C" id (*_dealloc)(id) ; diff --git a/clang/test/SemaObjCXX/instantiate-method-return.mm b/clang/test/SemaObjCXX/instantiate-method-return.mm index 2a3ae3231280..9fad82feaeb7 100644 --- a/clang/test/SemaObjCXX/instantiate-method-return.mm +++ b/clang/test/SemaObjCXX/instantiate-method-return.mm @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics // PR7386 @class NSObject; diff --git a/clang/test/SemaObjCXX/ivar-lookup.mm b/clang/test/SemaObjCXX/ivar-lookup.mm index fc99c15fd379..d99e61780281 100644 --- a/clang/test/SemaObjCXX/ivar-lookup.mm +++ b/clang/test/SemaObjCXX/ivar-lookup.mm @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics @interface Ivar - (float*)method; @end diff --git a/clang/test/SemaObjCXX/ivar-struct.mm b/clang/test/SemaObjCXX/ivar-struct.mm index 3f9c7eb1a503..c8c9ca9cbbf0 100644 --- a/clang/test/SemaObjCXX/ivar-struct.mm +++ b/clang/test/SemaObjCXX/ivar-struct.mm @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @interface A { struct X { int x, y; diff --git a/clang/test/SemaObjCXX/linkage-spec.mm b/clang/test/SemaObjCXX/linkage-spec.mm index 584571de9636..25b57a9a5c68 100644 --- a/clang/test/SemaObjCXX/linkage-spec.mm +++ b/clang/test/SemaObjCXX/linkage-spec.mm @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics extern "C" { @class Protocol; } diff --git a/clang/test/SemaObjCXX/namespace-lookup.mm b/clang/test/SemaObjCXX/namespace-lookup.mm index 205b443ffcab..c5521c14353d 100644 --- a/clang/test/SemaObjCXX/namespace-lookup.mm +++ b/clang/test/SemaObjCXX/namespace-lookup.mm @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // @interface A diff --git a/clang/test/SemaObjCXX/null_objc_pointer.mm b/clang/test/SemaObjCXX/null_objc_pointer.mm index 0da9e50f5a1c..e0232bf3c872 100644 --- a/clang/test/SemaObjCXX/null_objc_pointer.mm +++ b/clang/test/SemaObjCXX/null_objc_pointer.mm @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wnull-arithmetic %s +// expected-no-diagnostics #define NULL __null @interface X diff --git a/clang/test/SemaObjCXX/nullptr.mm b/clang/test/SemaObjCXX/nullptr.mm index 2b29b043923a..73a921e8c895 100644 --- a/clang/test/SemaObjCXX/nullptr.mm +++ b/clang/test/SemaObjCXX/nullptr.mm @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fblocks -fsyntax-only -verify %s +// expected-no-diagnostics @interface A @end diff --git a/clang/test/SemaObjCXX/overload-gc.mm b/clang/test/SemaObjCXX/overload-gc.mm index 5488ea56315c..ffb8680cc03b 100644 --- a/clang/test/SemaObjCXX/overload-gc.mm +++ b/clang/test/SemaObjCXX/overload-gc.mm @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -triple i386-apple-darwin9 -fobjc-gc -verify %s +// expected-no-diagnostics void f0(__weak id *); diff --git a/clang/test/SemaObjCXX/pointer-to-objc-pointer-conv.mm b/clang/test/SemaObjCXX/pointer-to-objc-pointer-conv.mm index d0f8404b6027..4becaaf058e2 100644 --- a/clang/test/SemaObjCXX/pointer-to-objc-pointer-conv.mm +++ b/clang/test/SemaObjCXX/pointer-to-objc-pointer-conv.mm @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @interface G @end diff --git a/clang/test/SemaObjCXX/property-type-mismatch.mm b/clang/test/SemaObjCXX/property-type-mismatch.mm index 059793cf5ceb..2b267ad96eef 100644 --- a/clang/test/SemaObjCXX/property-type-mismatch.mm +++ b/clang/test/SemaObjCXX/property-type-mismatch.mm @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // rdar://9740328 @protocol P1; diff --git a/clang/test/SemaObjCXX/references.mm b/clang/test/SemaObjCXX/references.mm index 3a522005abee..f63e17d98efc 100644 --- a/clang/test/SemaObjCXX/references.mm +++ b/clang/test/SemaObjCXX/references.mm @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -verify -emit-llvm -o - %s +// expected-no-diagnostics // Test reference binding. diff --git a/clang/test/SemaObjCXX/reinterpret-cast-objc-pointertype.mm b/clang/test/SemaObjCXX/reinterpret-cast-objc-pointertype.mm index fcabaded7c4d..4d7c049bbfea 100644 --- a/clang/test/SemaObjCXX/reinterpret-cast-objc-pointertype.mm +++ b/clang/test/SemaObjCXX/reinterpret-cast-objc-pointertype.mm @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @interface NSString @end diff --git a/clang/test/SemaObjCXX/reserved-keyword-methods.mm b/clang/test/SemaObjCXX/reserved-keyword-methods.mm index 1302128ac0f0..12608dea161a 100644 --- a/clang/test/SemaObjCXX/reserved-keyword-methods.mm +++ b/clang/test/SemaObjCXX/reserved-keyword-methods.mm @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics #define FOR_EACH_KEYWORD(macro) \ macro(asm) \ diff --git a/clang/test/SemaObjCXX/standard-conversion-to-bool.mm b/clang/test/SemaObjCXX/standard-conversion-to-bool.mm index 2e6984872d79..c36b63bd6413 100644 --- a/clang/test/SemaObjCXX/standard-conversion-to-bool.mm +++ b/clang/test/SemaObjCXX/standard-conversion-to-bool.mm @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @class NSString; id a; diff --git a/clang/test/SemaObjCXX/static-cast.mm b/clang/test/SemaObjCXX/static-cast.mm index e2827028de59..494ee253e252 100644 --- a/clang/test/SemaObjCXX/static-cast.mm +++ b/clang/test/SemaObjCXX/static-cast.mm @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @protocol NSTextViewDelegate; diff --git a/clang/test/SemaObjCXX/vla.mm b/clang/test/SemaObjCXX/vla.mm index d6da1c0cf40e..e1d556e9921a 100644 --- a/clang/test/SemaObjCXX/vla.mm +++ b/clang/test/SemaObjCXX/vla.mm @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics @interface Data - (unsigned)length; diff --git a/clang/test/SemaOpenCL/cond.cl b/clang/test/SemaOpenCL/cond.cl index 79dc82db190d..802ad9b785a8 100644 --- a/clang/test/SemaOpenCL/cond.cl +++ b/clang/test/SemaOpenCL/cond.cl @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only +// expected-no-diagnostics typedef __attribute__((ext_vector_type(4))) float float4; diff --git a/clang/test/SemaOpenCL/init.cl b/clang/test/SemaOpenCL/init.cl index b3ecfecb5db6..a156921254b6 100644 --- a/clang/test/SemaOpenCL/init.cl +++ b/clang/test/SemaOpenCL/init.cl @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only +// expected-no-diagnostics typedef float float8 __attribute((ext_vector_type(8))); diff --git a/clang/test/SemaOpenCL/vec_compare.cl b/clang/test/SemaOpenCL/vec_compare.cl index dd91aa592ab2..567629c10d56 100644 --- a/clang/test/SemaOpenCL/vec_compare.cl +++ b/clang/test/SemaOpenCL/vec_compare.cl @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only +// expected-no-diagnostics typedef __attribute__((ext_vector_type(2))) unsigned int uint2; typedef __attribute__((ext_vector_type(2))) int int2; diff --git a/clang/test/SemaOpenCL/vector_literals_const.cl b/clang/test/SemaOpenCL/vector_literals_const.cl index e761816db4b7..ee5ae2002a3c 100644 --- a/clang/test/SemaOpenCL/vector_literals_const.cl +++ b/clang/test/SemaOpenCL/vector_literals_const.cl @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only +// expected-no-diagnostics typedef int int2 __attribute((ext_vector_type(2))); typedef int int3 __attribute((ext_vector_type(3))); diff --git a/clang/test/SemaTemplate/ackermann.cpp b/clang/test/SemaTemplate/ackermann.cpp index 9525bfcc4f43..fc523e392eaf 100644 --- a/clang/test/SemaTemplate/ackermann.cpp +++ b/clang/test/SemaTemplate/ackermann.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // template // struct Ackermann { diff --git a/clang/test/SemaTemplate/alias-church-numerals.cpp b/clang/test/SemaTemplate/alias-church-numerals.cpp index 69d77163ab67..a1613230ac0d 100644 --- a/clang/test/SemaTemplate/alias-church-numerals.cpp +++ b/clang/test/SemaTemplate/alias-church-numerals.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics template class, typename> class T, template class V> struct PartialApply { template using R = T; diff --git a/clang/test/SemaTemplate/alias-template-template-param.cpp b/clang/test/SemaTemplate/alias-template-template-param.cpp index c22fccb6788e..0b17d10d0cb6 100644 --- a/clang/test/SemaTemplate/alias-template-template-param.cpp +++ b/clang/test/SemaTemplate/alias-template-template-param.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s +// expected-no-diagnostics template class D> using C = D; diff --git a/clang/test/SemaTemplate/array-to-pointer-decay.cpp b/clang/test/SemaTemplate/array-to-pointer-decay.cpp index 072c0e52edc6..26d277d7dc05 100644 --- a/clang/test/SemaTemplate/array-to-pointer-decay.cpp +++ b/clang/test/SemaTemplate/array-to-pointer-decay.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics struct mystruct { int member; diff --git a/clang/test/SemaTemplate/atomics.cpp b/clang/test/SemaTemplate/atomics.cpp index e9fdc9de3d23..19b607f738a8 100644 --- a/clang/test/SemaTemplate/atomics.cpp +++ b/clang/test/SemaTemplate/atomics.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // PR8345 template T f(T* value) { diff --git a/clang/test/SemaTemplate/default-arguments-cxx0x.cpp b/clang/test/SemaTemplate/default-arguments-cxx0x.cpp index 77143136c3d2..4c815f655875 100644 --- a/clang/test/SemaTemplate/default-arguments-cxx0x.cpp +++ b/clang/test/SemaTemplate/default-arguments-cxx0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s +// expected-no-diagnostics // Test default template arguments for function templates. template diff --git a/clang/test/SemaTemplate/dependent-base-member-init.cpp b/clang/test/SemaTemplate/dependent-base-member-init.cpp index 1d4fed3e1d26..a278e79f9123 100644 --- a/clang/test/SemaTemplate/dependent-base-member-init.cpp +++ b/clang/test/SemaTemplate/dependent-base-member-init.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // PR4381 template struct X {}; diff --git a/clang/test/SemaTemplate/dependent-expr.cpp b/clang/test/SemaTemplate/dependent-expr.cpp index a1ddd249f7fe..d75b0f3e3029 100644 --- a/clang/test/SemaTemplate/dependent-expr.cpp +++ b/clang/test/SemaTemplate/dependent-expr.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // PR5908 template diff --git a/clang/test/SemaTemplate/enum-argument.cpp b/clang/test/SemaTemplate/enum-argument.cpp index 7d237570678f..7ff419613990 100644 --- a/clang/test/SemaTemplate/enum-argument.cpp +++ b/clang/test/SemaTemplate/enum-argument.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics enum Enum { val = 1 }; template struct C { diff --git a/clang/test/SemaTemplate/example-typelist.cpp b/clang/test/SemaTemplate/example-typelist.cpp index 082aeb83fbdd..9ce06e665cf7 100644 --- a/clang/test/SemaTemplate/example-typelist.cpp +++ b/clang/test/SemaTemplate/example-typelist.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // A simple cons-style typelist struct nil { }; diff --git a/clang/test/SemaTemplate/instantiate-array.cpp b/clang/test/SemaTemplate/instantiate-array.cpp index b8229d3f641a..41d1cfe138ab 100644 --- a/clang/test/SemaTemplate/instantiate-array.cpp +++ b/clang/test/SemaTemplate/instantiate-array.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11 +// expected-no-diagnostics #ifndef __GXX_EXPERIMENTAL_CXX0X__ #define __CONCAT(__X, __Y) __CONCAT1(__X, __Y) diff --git a/clang/test/SemaTemplate/instantiate-attr.cpp b/clang/test/SemaTemplate/instantiate-attr.cpp index bbadb6375b5b..45136f6f60a0 100644 --- a/clang/test/SemaTemplate/instantiate-attr.cpp +++ b/clang/test/SemaTemplate/instantiate-attr.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics template struct A { char a __attribute__((aligned(16))); diff --git a/clang/test/SemaTemplate/instantiate-decl-init.cpp b/clang/test/SemaTemplate/instantiate-decl-init.cpp index 6b76d72e3261..9658fc1465cd 100644 --- a/clang/test/SemaTemplate/instantiate-decl-init.cpp +++ b/clang/test/SemaTemplate/instantiate-decl-init.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // PR5426 - the non-dependent obj would be fully processed and wrapped in a // CXXConstructExpr at definition time, which would lead to a failure at diff --git a/clang/test/SemaTemplate/instantiate-declref-ice.cpp b/clang/test/SemaTemplate/instantiate-declref-ice.cpp index 49b1b63f5152..7cdeda6fb9da 100644 --- a/clang/test/SemaTemplate/instantiate-declref-ice.cpp +++ b/clang/test/SemaTemplate/instantiate-declref-ice.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics template struct x { static const int j = i; x* y; diff --git a/clang/test/SemaTemplate/instantiate-deeply.cpp b/clang/test/SemaTemplate/instantiate-deeply.cpp index c5f65945afcb..ba38b2b2351c 100644 --- a/clang/test/SemaTemplate/instantiate-deeply.cpp +++ b/clang/test/SemaTemplate/instantiate-deeply.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -Wall -verify %s +// expected-no-diagnostics template struct A { template struct B { template struct C { diff --git a/clang/test/SemaTemplate/instantiate-dependent-nested-name.cpp b/clang/test/SemaTemplate/instantiate-dependent-nested-name.cpp index eb1d3fba10ed..06a1ed4119d2 100644 --- a/clang/test/SemaTemplate/instantiate-dependent-nested-name.cpp +++ b/clang/test/SemaTemplate/instantiate-dependent-nested-name.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // PR4382 template struct X { static const T A = 1; }; template::A> struct Y { typedef T A; }; diff --git a/clang/test/SemaTemplate/instantiate-elab-type-specifier.cpp b/clang/test/SemaTemplate/instantiate-elab-type-specifier.cpp index e5e10a85cf2f..5db9b56c21a4 100644 --- a/clang/test/SemaTemplate/instantiate-elab-type-specifier.cpp +++ b/clang/test/SemaTemplate/instantiate-elab-type-specifier.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // PR5681 template struct Base { diff --git a/clang/test/SemaTemplate/instantiate-enum-2.cpp b/clang/test/SemaTemplate/instantiate-enum-2.cpp index aa3b590cada4..9a90a9cd6ce7 100644 --- a/clang/test/SemaTemplate/instantiate-enum-2.cpp +++ b/clang/test/SemaTemplate/instantiate-enum-2.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -fsyntax-only -verify +// expected-no-diagnostics template struct X { enum { diff --git a/clang/test/SemaTemplate/instantiate-friend-class.cpp b/clang/test/SemaTemplate/instantiate-friend-class.cpp index c87b8d0bf9b2..32aa3014b9cb 100644 --- a/clang/test/SemaTemplate/instantiate-friend-class.cpp +++ b/clang/test/SemaTemplate/instantiate-friend-class.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // PR4794 template class X diff --git a/clang/test/SemaTemplate/instantiate-local-class.cpp b/clang/test/SemaTemplate/instantiate-local-class.cpp index 20b62c1e537e..c151fbb9a5ba 100644 --- a/clang/test/SemaTemplate/instantiate-local-class.cpp +++ b/clang/test/SemaTemplate/instantiate-local-class.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -verify %s +// expected-no-diagnostics template void f0() { struct X; diff --git a/clang/test/SemaTemplate/instantiate-non-type-template-parameter.cpp b/clang/test/SemaTemplate/instantiate-non-type-template-parameter.cpp index 027c1e8bb769..04975e30448b 100644 --- a/clang/test/SemaTemplate/instantiate-non-type-template-parameter.cpp +++ b/clang/test/SemaTemplate/instantiate-non-type-template-parameter.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // PR5311 template diff --git a/clang/test/SemaTemplate/instantiate-overloaded-arrow.cpp b/clang/test/SemaTemplate/instantiate-overloaded-arrow.cpp index ee36427db87b..b21c7a34ad4c 100644 --- a/clang/test/SemaTemplate/instantiate-overloaded-arrow.cpp +++ b/clang/test/SemaTemplate/instantiate-overloaded-arrow.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // PR5488 struct X { diff --git a/clang/test/SemaTemplate/instantiate-sizeof.cpp b/clang/test/SemaTemplate/instantiate-sizeof.cpp index 00d63d0c2fe5..bf66fdc17c65 100644 --- a/clang/test/SemaTemplate/instantiate-sizeof.cpp +++ b/clang/test/SemaTemplate/instantiate-sizeof.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s +// expected-no-diagnostics // Make sure we handle contexts correctly with sizeof template void f(T n) { diff --git a/clang/test/SemaTemplate/instantiation-default-3.cpp b/clang/test/SemaTemplate/instantiation-default-3.cpp index dae6b18f32c2..76189ea90bfb 100644 --- a/clang/test/SemaTemplate/instantiation-default-3.cpp +++ b/clang/test/SemaTemplate/instantiation-default-3.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics template struct A { }; diff --git a/clang/test/SemaTemplate/issue150.cpp b/clang/test/SemaTemplate/issue150.cpp index af3b93c907c1..a04be35a29e7 100644 --- a/clang/test/SemaTemplate/issue150.cpp +++ b/clang/test/SemaTemplate/issue150.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // Core issue 150: Template template parameters and default arguments diff --git a/clang/test/SemaTemplate/lookup-dependent-bases.cpp b/clang/test/SemaTemplate/lookup-dependent-bases.cpp index 2710caf22125..4fcfbd196407 100644 --- a/clang/test/SemaTemplate/lookup-dependent-bases.cpp +++ b/clang/test/SemaTemplate/lookup-dependent-bases.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fms-extensions -fsyntax-only -verify %s +// expected-no-diagnostics class C { public: diff --git a/clang/test/SemaTemplate/member-initializers.cpp b/clang/test/SemaTemplate/member-initializers.cpp index 40f56b34dae0..6791048874f8 100644 --- a/clang/test/SemaTemplate/member-initializers.cpp +++ b/clang/test/SemaTemplate/member-initializers.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics template struct A { A() : j(10), i(10) { } diff --git a/clang/test/SemaTemplate/nested-linkage.cpp b/clang/test/SemaTemplate/nested-linkage.cpp index 6c0791c2efc8..59746ea9c10e 100644 --- a/clang/test/SemaTemplate/nested-linkage.cpp +++ b/clang/test/SemaTemplate/nested-linkage.cpp @@ -1,3 +1,4 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics extern "C" { extern "C++" { template C x(); } } diff --git a/clang/test/SemaTemplate/operator-function-id-template.cpp b/clang/test/SemaTemplate/operator-function-id-template.cpp index 9a0884e8136d..96dfe26cc596 100644 --- a/clang/test/SemaTemplate/operator-function-id-template.cpp +++ b/clang/test/SemaTemplate/operator-function-id-template.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics template struct A { diff --git a/clang/test/SemaTemplate/overload-uneval.cpp b/clang/test/SemaTemplate/overload-uneval.cpp index 8d8a2f42cf28..c952ef8ec7c4 100644 --- a/clang/test/SemaTemplate/overload-uneval.cpp +++ b/clang/test/SemaTemplate/overload-uneval.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -Wno-unused %s +// expected-no-diagnostics // Tests that overload resolution is treated as an unevaluated context. // PR5541 diff --git a/clang/test/SemaTemplate/pragma-ms_struct.cpp b/clang/test/SemaTemplate/pragma-ms_struct.cpp index f04dc5ccae45..fe0b494b9a57 100644 --- a/clang/test/SemaTemplate/pragma-ms_struct.cpp +++ b/clang/test/SemaTemplate/pragma-ms_struct.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -triple i686-apple-osx10.7.0 %s +// expected-no-diagnostics #pragma ms_struct on diff --git a/clang/test/SemaTemplate/temp_class_spec_blocks.cpp b/clang/test/SemaTemplate/temp_class_spec_blocks.cpp index b7b96df69ba5..4b99716d582e 100644 --- a/clang/test/SemaTemplate/temp_class_spec_blocks.cpp +++ b/clang/test/SemaTemplate/temp_class_spec_blocks.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s -fblocks +// expected-no-diagnostics template struct is_unary_block { static const bool value = false; diff --git a/clang/test/SemaTemplate/template-class-traits.cpp b/clang/test/SemaTemplate/template-class-traits.cpp index 471029445256..63ce8f434da3 100644 --- a/clang/test/SemaTemplate/template-class-traits.cpp +++ b/clang/test/SemaTemplate/template-class-traits.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics #define T(b) (b) ? 1 : -1 #define F(b) (b) ? -1 : 1 diff --git a/clang/test/SemaTemplate/typo-dependent-name.cpp b/clang/test/SemaTemplate/typo-dependent-name.cpp index 96554e9dcf4a..78cedd0c98ca 100644 --- a/clang/test/SemaTemplate/typo-dependent-name.cpp +++ b/clang/test/SemaTemplate/typo-dependent-name.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics template struct Base { diff --git a/clang/test/SemaTemplate/unresolved-construct.cpp b/clang/test/SemaTemplate/unresolved-construct.cpp index bb9ed8e4e081..ef010fbdd174 100644 --- a/clang/test/SemaTemplate/unresolved-construct.cpp +++ b/clang/test/SemaTemplate/unresolved-construct.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics class A { public: