summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/test/ASTMerge/exprs.c1
-rw-r--r--clang/test/Analysis/CFContainers-invalid.c1
-rw-r--r--clang/test/Analysis/CFRetainRelease_NSAssertionHandler.m1
-rw-r--r--clang/test/Analysis/MissingDealloc.m1
-rw-r--r--clang/test/Analysis/NSPanel.m1
-rw-r--r--clang/test/Analysis/NoReturn.m1
-rw-r--r--clang/test/Analysis/OSAtomic_mac.cpp1
-rw-r--r--clang/test/Analysis/ObjCProperties.m1
-rw-r--r--clang/test/Analysis/PR9741.cpp1
-rw-r--r--clang/test/Analysis/casts.c1
-rw-r--r--clang/test/Analysis/casts.m1
-rw-r--r--clang/test/Analysis/cfref_PR2519.c1
-rw-r--r--clang/test/Analysis/cfref_rdar6080742.c1
-rw-r--r--clang/test/Analysis/complex-init-list.cpp1
-rw-r--r--clang/test/Analysis/concrete-address.c1
-rw-r--r--clang/test/Analysis/cstring-syntax-cxx.cpp1
-rw-r--r--clang/test/Analysis/cxx-method-names.cpp1
-rw-r--r--clang/test/Analysis/cxx11-crashes.cpp1
-rw-r--r--clang/test/Analysis/dead-stores.m1
-rw-r--r--clang/test/Analysis/delegates.m1
-rw-r--r--clang/test/Analysis/engine/replay-without-inlining.c1
-rw-r--r--clang/test/Analysis/idempotent-operations.m1
-rw-r--r--clang/test/Analysis/inline2.c1
-rw-r--r--clang/test/Analysis/inline3.c1
-rw-r--r--clang/test/Analysis/inline4.c1
-rw-r--r--clang/test/Analysis/inlining/test_objc_inlining_option.m1
-rw-r--r--clang/test/Analysis/lvalue.cpp1
-rw-r--r--clang/test/Analysis/malloc-overflow.cpp1
-rw-r--r--clang/test/Analysis/method-call-intra-p.cpp1
-rw-r--r--clang/test/Analysis/misc-ps-64.m1
-rw-r--r--clang/test/Analysis/misc-ps-arm.m1
-rw-r--r--clang/test/Analysis/misc-ps-eager-assume.m1
-rw-r--r--clang/test/Analysis/misc-ps-region-store-i386.m1
-rw-r--r--clang/test/Analysis/misc-ps-region-store-x86_64.m1
-rw-r--r--clang/test/Analysis/misc-ps-region-store.mm1
-rw-r--r--clang/test/Analysis/no-exit-cfg.c1
-rw-r--r--clang/test/Analysis/null-deref-ps-region.c1
-rw-r--r--clang/test/Analysis/objc-bool.m1
-rw-r--r--clang/test/Analysis/pr_4164.c1
-rw-r--r--clang/test/Analysis/rdar-6442306-1.m1
-rw-r--r--clang/test/Analysis/rdar-6562655.m1
-rw-r--r--clang/test/Analysis/rdar-6600344-nil-receiver-undefined-struct-ret.m1
-rw-r--r--clang/test/Analysis/redefined_system.c1
-rw-r--r--clang/test/Analysis/region-1.m1
-rw-r--r--clang/test/Analysis/region-store.c1
-rw-r--r--clang/test/Analysis/security-syntax-checks-no-emit.c1
-rw-r--r--clang/test/Analysis/static_local.m1
-rw-r--r--clang/test/Analysis/svalbuilder-logic.c1
-rw-r--r--clang/test/Analysis/taint-tester.cpp1
-rw-r--r--clang/test/Analysis/taint-tester.m1
-rw-r--r--clang/test/Analysis/uninit-vals.m1
-rw-r--r--clang/test/Analysis/unions-region.m1
-rw-r--r--clang/test/Analysis/unions.cpp1
-rw-r--r--clang/test/CXX/basic/basic.lookup/basic.lookup.argdep/p2-template-id.cpp1
-rw-r--r--clang/test/CXX/basic/basic.lookup/basic.lookup.classref/p3.cpp1
-rw-r--r--clang/test/CXX/basic/basic.lookup/basic.lookup.classref/p4-cxx11.cpp1
-rw-r--r--clang/test/CXX/basic/basic.lookup/basic.lookup.qual/namespace.qual/p3.cpp1
-rw-r--r--clang/test/CXX/basic/basic.lookup/basic.lookup.qual/namespace.qual/p4.cpp1
-rw-r--r--clang/test/CXX/basic/basic.lookup/basic.lookup.udir/p1.cpp1
-rw-r--r--clang/test/CXX/basic/basic.lookup/basic.lookup.unqual/p12.cpp1
-rw-r--r--clang/test/CXX/basic/basic.lookup/basic.lookup.unqual/p13.cpp1
-rw-r--r--clang/test/CXX/basic/basic.lookup/basic.lookup.unqual/p14.cpp1
-rw-r--r--clang/test/CXX/basic/basic.lookup/basic.lookup.unqual/p3.cpp1
-rw-r--r--clang/test/CXX/basic/basic.scope/basic.scope.pdecl/p9.cpp1
-rw-r--r--clang/test/CXX/basic/basic.start/basic.start.main/p2a.cpp1
-rw-r--r--clang/test/CXX/basic/basic.start/basic.start.main/p2b.cpp1
-rw-r--r--clang/test/CXX/basic/basic.start/basic.start.main/p2c.cpp1
-rw-r--r--clang/test/CXX/basic/basic.start/basic.start.main/p2g.cpp1
-rw-r--r--clang/test/CXX/basic/basic.stc/basic.stc.dynamic/p2-nodef.cpp1
-rw-r--r--clang/test/CXX/basic/basic.stc/basic.stc.dynamic/p2-noexceptions.cpp1
-rw-r--r--clang/test/CXX/class.access/class.protected/p1-cxx11.cpp1
-rw-r--r--clang/test/CXX/class.derived/p2.cpp1
-rw-r--r--clang/test/CXX/class/class.friend/p1-ambiguous.cpp1
-rw-r--r--clang/test/CXX/class/class.friend/p1-cxx11.cpp1
-rw-r--r--clang/test/CXX/class/class.nest/p3.cpp1
-rw-r--r--clang/test/CXX/class/p1-0x.cpp1
-rw-r--r--clang/test/CXX/class/p6-0x.cpp1
-rw-r--r--clang/test/CXX/conv/conv.prom/p2.cpp1
-rw-r--r--clang/test/CXX/conv/conv.prom/p4.cpp1
-rw-r--r--clang/test/CXX/conv/conv.ptr/p2.cpp1
-rw-r--r--clang/test/CXX/conv/conv.qual/pr6089.cpp1
-rw-r--r--clang/test/CXX/dcl.dcl/basic.namespace/namespace.def/p2.cpp1
-rw-r--r--clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p10.cpp1
-rw-r--r--clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p13.cpp1
-rw-r--r--clang/test/CXX/dcl.dcl/basic.namespace/namespace.udir/p6.cpp1
-rw-r--r--clang/test/CXX/dcl.decl/dcl.init/dcl.init.ref/basic.cpp1
-rw-r--r--clang/test/CXX/dcl.decl/dcl.init/dcl.init.ref/p1.cpp1
-rw-r--r--clang/test/CXX/dcl.decl/dcl.init/dcl.init.string/p1.cpp1
-rw-r--r--clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct.default/p2.cpp1
-rw-r--r--clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct/p14.cpp1
-rw-r--r--clang/test/CXX/dcl.decl/dcl.meaning/dcl.ref/p6-0x.cpp1
-rw-r--r--clang/test/CXX/dcl.decl/dcl.name/p1.cpp1
-rw-r--r--clang/test/CXX/dcl.decl/p4-0x.cpp1
-rw-r--r--clang/test/CXX/except/except.spec/canonical.cpp1
-rw-r--r--clang/test/CXX/except/except.spec/p11.cpp1
-rw-r--r--clang/test/CXX/expr/expr.cast/p4-0x.cpp1
-rw-r--r--clang/test/CXX/expr/expr.const/p3-0x-nowarn.cpp1
-rw-r--r--clang/test/CXX/expr/expr.post/expr.const.cast/p1-0x.cpp1
-rw-r--r--clang/test/CXX/expr/expr.post/expr.ref/p3.cpp1
-rw-r--r--clang/test/CXX/expr/expr.post/expr.static.cast/p3-0x.cpp1
-rw-r--r--clang/test/CXX/expr/expr.post/expr.static.cast/p9-0x.cpp1
-rw-r--r--clang/test/CXX/expr/expr.post/expr.type.conv/p1-0x.cpp1
-rw-r--r--clang/test/CXX/expr/expr.prim/expr.prim.lambda/p15.cpp1
-rw-r--r--clang/test/CXX/expr/expr.prim/expr.prim.lambda/p18.cpp1
-rw-r--r--clang/test/CXX/expr/expr.prim/expr.prim.lambda/p20.cpp1
-rw-r--r--clang/test/CXX/expr/expr.prim/expr.prim.lambda/p21.cpp1
-rw-r--r--clang/test/CXX/expr/expr.unary/expr.unary.noexcept/sema.cpp1
-rw-r--r--clang/test/CXX/expr/expr.unary/expr.unary.op/p3.cpp1
-rw-r--r--clang/test/CXX/expr/p8.cpp1
-rw-r--r--clang/test/CXX/expr/p9.cpp1
-rw-r--r--clang/test/CXX/lex/lex.literal/lex.ccon/p1.cpp1
-rw-r--r--clang/test/CXX/lex/lex.trigraph/p3.cpp1
-rw-r--r--clang/test/CXX/over/over.built/p23.cpp1
-rw-r--r--clang/test/CXX/over/over.built/p25.cpp1
-rw-r--r--clang/test/CXX/over/over.match/over.match.best/over.ics.rank/p3-0x.cpp1
-rw-r--r--clang/test/CXX/over/over.match/over.match.best/p1.cpp1
-rw-r--r--clang/test/CXX/over/over.match/over.match.funcs/over.match.oper/p3.cpp1
-rw-r--r--clang/test/CXX/over/over.match/over.match.funcs/p4-0x.cpp1
-rw-r--r--clang/test/CXX/over/over.oper/over.literal/p7.cpp1
-rw-r--r--clang/test/CXX/special/class.conv/class.conv.ctor/p1.cpp1
-rw-r--r--clang/test/CXX/special/class.copy/p15-0x.cpp1
-rw-r--r--clang/test/CXX/special/class.copy/p8-cxx11.cpp1
-rw-r--r--clang/test/CXX/special/class.ctor/p1.cpp1
-rw-r--r--clang/test/CXX/special/class.dtor/p2.cpp1
-rw-r--r--clang/test/CXX/stmt.stmt/stmt.select/stmt.switch/p2-0x.cpp1
-rw-r--r--clang/test/CXX/temp/temp.arg/temp.arg.type/p2-cxx0x.cpp1
-rw-r--r--clang/test/CXX/temp/temp.decls/temp.alias/p1.cpp1
-rw-r--r--clang/test/CXX/temp/temp.decls/temp.class.spec/p9.cpp1
-rw-r--r--clang/test/CXX/temp/temp.decls/temp.class.spec/temp.class.order/p2.cpp1
-rw-r--r--clang/test/CXX/temp/temp.decls/temp.class.spec/temp.class.spec.mfunc/p1.cpp1
-rw-r--r--clang/test/CXX/temp/temp.decls/temp.class/temp.mem.func/p1-retmem.cpp1
-rw-r--r--clang/test/CXX/temp/temp.decls/temp.class/temp.mem.func/pr5056.cpp1
-rw-r--r--clang/test/CXX/temp/temp.decls/temp.fct/temp.func.order/p3-0x.cpp1
-rw-r--r--clang/test/CXX/temp/temp.decls/temp.fct/temp.func.order/p3.cpp1
-rw-r--r--clang/test/CXX/temp/temp.decls/temp.fct/temp.func.order/p5.cpp1
-rw-r--r--clang/test/CXX/temp/temp.decls/temp.fct/temp.over.link/p4.cpp1
-rw-r--r--clang/test/CXX/temp/temp.decls/temp.friend/p5.cpp1
-rw-r--r--clang/test/CXX/temp/temp.decls/temp.mem/p1.cpp1
-rw-r--r--clang/test/CXX/temp/temp.decls/temp.variadic/deduction.cpp1
-rw-r--r--clang/test/CXX/temp/temp.decls/temp.variadic/example-bind.cpp1
-rw-r--r--clang/test/CXX/temp/temp.decls/temp.variadic/example-function.cpp1
-rw-r--r--clang/test/CXX/temp/temp.decls/temp.variadic/example-tuple.cpp1
-rw-r--r--clang/test/CXX/temp/temp.decls/temp.variadic/injected-class-name.cpp1
-rw-r--r--clang/test/CXX/temp/temp.decls/temp.variadic/partial-ordering.cpp1
-rw-r--r--clang/test/CXX/temp/temp.fct.spec/temp.arg.explicit/p3-0x.cpp1
-rw-r--r--clang/test/CXX/temp/temp.fct.spec/temp.arg.explicit/p9-0x.cpp1
-rw-r--r--clang/test/CXX/temp/temp.fct.spec/temp.deduct/cwg1170.cpp1
-rw-r--r--clang/test/CXX/temp/temp.fct.spec/temp.deduct/sfinae-1.cpp1
-rw-r--r--clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.call/p2.cpp1
-rw-r--r--clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.call/p4.cpp1
-rw-r--r--clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.conv/p2.cpp1
-rw-r--r--clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.conv/p3.cpp1
-rw-r--r--clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.partial/p12.cpp1
-rw-r--r--clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.partial/p9-0x.cpp1
-rw-r--r--clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p10-0x.cpp1
-rw-r--r--clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p2-0x.cpp1
-rw-r--r--clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p21.cpp1
-rw-r--r--clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p22.cpp1
-rw-r--r--clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p5-0x.cpp1
-rw-r--r--clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p8-0x.cpp1
-rw-r--r--clang/test/CXX/temp/temp.names/p2.cpp1
-rw-r--r--clang/test/CXX/temp/temp.names/p4.cpp1
-rw-r--r--clang/test/CXX/temp/temp.param/p10-0x.cpp1
-rw-r--r--clang/test/CXX/temp/temp.param/p10.cpp1
-rw-r--r--clang/test/CXX/temp/temp.param/p13.cpp1
-rw-r--r--clang/test/CXX/temp/temp.param/p2.cpp1
-rw-r--r--clang/test/CXX/temp/temp.param/p5.cpp1
-rw-r--r--clang/test/CXX/temp/temp.param/p8.cpp1
-rw-r--r--clang/test/CXX/temp/temp.res/temp.dep/p3.cpp1
-rw-r--r--clang/test/CXX/temp/temp.res/temp.dep/temp.dep.constexpr/p2-0x.cpp1
-rw-r--r--clang/test/CXX/temp/temp.res/temp.local/p1.cpp1
-rw-r--r--clang/test/CXX/temp/temp.res/temp.local/p7.cpp1
-rw-r--r--clang/test/CXX/temp/temp.res/temp.local/p8.cpp1
-rw-r--r--clang/test/CXX/temp/temp.spec/temp.expl.spec/p1.cpp1
-rw-r--r--clang/test/CXX/temp/temp.spec/temp.expl.spec/p11.cpp1
-rw-r--r--clang/test/CXX/temp/temp.spec/temp.expl.spec/p9.cpp1
-rw-r--r--clang/test/CXX/temp/temp.spec/temp.explicit/p11.cpp1
-rw-r--r--clang/test/CXX/temp/temp.spec/temp.explicit/p3-0x.cpp1
-rw-r--r--clang/test/CXX/temp/temp.spec/temp.explicit/p6.cpp1
-rw-r--r--clang/test/CodeGen/2009-06-01-addrofknr.c1
-rw-r--r--clang/test/CodeGen/arm-aapcs-zerolength-bitfield.c1
-rw-r--r--clang/test/CodeGen/arm-apcs-zerolength-bitfield.c1
-rw-r--r--clang/test/CodeGen/func-ptr-cast-decl.c1
-rw-r--r--clang/test/CodeGenCXX/conversion-operator-base.cpp1
-rw-r--r--clang/test/CodeGenCXX/copy-assign-synthesis-3.cpp1
-rw-r--r--clang/test/CodeGenCXX/dependent-type-member-pointer.cpp1
-rw-r--r--clang/test/CodeGenCXX/enum.cpp1
-rw-r--r--clang/test/CodeGenCXX/incomplete-types.cpp1
-rw-r--r--clang/test/CodeGenCXX/instantiate-init-list.cpp1
-rw-r--r--clang/test/CodeGenCXX/member-call-parens.cpp1
-rw-r--r--clang/test/CodeGenCXX/member-init-struct.cpp1
-rw-r--r--clang/test/CodeGenCXX/member-init-union.cpp1
-rw-r--r--clang/test/CodeGenCXX/new-operator-phi.cpp1
-rw-r--r--clang/test/CodeGenCXX/reference-bind-default-argument.cpp1
-rw-r--r--clang/test/CodeGenCXX/reference-init.cpp1
-rw-r--r--clang/test/CodeGenCXX/static-assert.cpp1
-rw-r--r--clang/test/CodeGenCXX/static-init-2.cpp1
-rw-r--r--clang/test/CodeGenCXX/throw-expression-dtor.cpp1
-rw-r--r--clang/test/CodeGenCXX/throw-expressions.cpp1
-rw-r--r--clang/test/CodeGenCXX/unary-type-trait.cpp1
-rw-r--r--clang/test/Driver/no-objc-arr.m1
-rw-r--r--clang/test/Driver/x86_64-nacl-types.cpp1
-rw-r--r--clang/test/Frontend/iframework.c1
-rw-r--r--clang/test/Frontend/macros.c1
-rw-r--r--clang/test/Frontend/unknown-pragmas.c1
-rw-r--r--clang/test/Frontend/warning-mapping-1.c1
-rw-r--r--clang/test/Frontend/warning-mapping-4.c1
-rw-r--r--clang/test/Headers/c89.c1
-rw-r--r--clang/test/Headers/int64-type.c1
-rw-r--r--clang/test/Headers/typedef_guards.c1
-rw-r--r--clang/test/Headers/wchar_limits.cpp1
-rw-r--r--clang/test/Headers/wmmintrin.c1
-rw-r--r--clang/test/Lexer/clang-keywords.cpp1
-rw-r--r--clang/test/Lexer/digraph.c1
-rw-r--r--clang/test/Lexer/gnu_keywords.c1
-rw-r--r--clang/test/Lexer/long-long.cpp8
-rw-r--r--clang/test/Lexer/msdos-cpm-eof.c1
-rw-r--r--clang/test/Lexer/newline-eof-c++11.cpp1
-rw-r--r--clang/test/Lexer/numeric-literal-trash.c2
-rw-r--r--clang/test/Lexer/pragma-mark.c1
-rw-r--r--clang/test/Lexer/rdr-6096838.c1
-rw-r--r--clang/test/Misc/predefines.c1
-rw-r--r--clang/test/Modules/Inputs/lookup_right.hpp1
-rw-r--r--clang/test/Modules/compiler_builtins.m1
-rw-r--r--clang/test/Modules/header-import.m1
-rw-r--r--clang/test/Modules/inferred-submodules.m1
-rw-r--r--clang/test/Modules/on-demand-macros.m1
-rw-r--r--clang/test/Modules/redeclarations.m1
-rw-r--r--clang/test/Modules/submodules.m1
-rw-r--r--clang/test/Modules/templates.mm1
-rw-r--r--clang/test/PCH/__va_list_tag.c2
-rw-r--r--clang/test/PCH/asm.c1
-rw-r--r--clang/test/PCH/builtins.c2
-rw-r--r--clang/test/PCH/chain-categories.m2
-rw-r--r--clang/test/PCH/chain-class-extension.m2
-rw-r--r--clang/test/PCH/chain-cxx.cpp2
-rw-r--r--clang/test/PCH/chain-decls.c2
-rw-r--r--clang/test/PCH/chain-macro.c1
-rw-r--r--clang/test/PCH/chain-remap-types.m1
-rw-r--r--clang/test/PCH/cmdline-include.c1
-rw-r--r--clang/test/PCH/cxx-exprs.cpp2
-rw-r--r--clang/test/PCH/cxx-friends.cpp2
-rw-r--r--clang/test/PCH/cxx-functions.cpp2
-rw-r--r--clang/test/PCH/cxx-implicit-moves.cpp1
-rw-r--r--clang/test/PCH/cxx-method.cpp1
-rw-r--r--clang/test/PCH/cxx-ms-function-specialization-class-scope.cpp1
-rw-r--r--clang/test/PCH/cxx-namespaces.cpp2
-rw-r--r--clang/test/PCH/cxx-templates.cpp2
-rw-r--r--clang/test/PCH/cxx-traits.cpp2
-rw-r--r--clang/test/PCH/cxx-typeid.cpp2
-rw-r--r--clang/test/PCH/cxx-variadic-templates.cpp2
-rw-r--r--clang/test/PCH/cxx11-exception-spec.cpp1
-rw-r--r--clang/test/PCH/cxx_exprs.cpp2
-rw-r--r--clang/test/PCH/enum.c2
-rw-r--r--clang/test/PCH/exprs.c6
-rw-r--r--clang/test/PCH/objc_container.m2
-rw-r--r--clang/test/PCH/objc_import.m2
-rw-r--r--clang/test/PCH/objc_literals.m2
-rw-r--r--clang/test/PCH/objc_literals.mm2
-rw-r--r--clang/test/PCH/objc_methods.m2
-rw-r--r--clang/test/PCH/objc_property.m2
-rw-r--r--clang/test/PCH/pending-ids.m2
-rw-r--r--clang/test/PCH/pragma-diag-section.cpp2
-rw-r--r--clang/test/PCH/pragma-diag.c2
-rw-r--r--clang/test/PCH/rdar8852495.c2
-rw-r--r--clang/test/PCH/reinclude.cpp2
-rw-r--r--clang/test/PCH/single-token-macro.c2
-rw-r--r--clang/test/Parser/block-block-storageclass.c1
-rw-r--r--clang/test/Parser/block-pointer-decl.c1
-rw-r--r--clang/test/Parser/check-objc2-syntax-1.m1
-rw-r--r--clang/test/Parser/compound_literal.c1
-rw-r--r--clang/test/Parser/cxx-attributes.cpp1
-rw-r--r--clang/test/Parser/cxx-extern-c-array.cpp1
-rw-r--r--clang/test/Parser/cxx0x-override-control-keywords.cpp1
-rw-r--r--clang/test/Parser/cxx11-brace-initializers.cpp1
-rw-r--r--clang/test/Parser/encode.m1
-rw-r--r--clang/test/Parser/enhanced-proto-1.m1
-rw-r--r--clang/test/Parser/if-scope-c90.c1
-rw-r--r--clang/test/Parser/knr_parameter_attributes.c1
-rw-r--r--clang/test/Parser/namelookup-bug-1.c1
-rw-r--r--clang/test/Parser/namelookup-bug-2.c1
-rw-r--r--clang/test/Parser/opencl-kernel.cl1
-rw-r--r--clang/test/Parser/parmvardecl_conversion.c1
-rw-r--r--clang/test/Parser/pragma-options.cpp1
-rw-r--r--clang/test/Parser/recursion-limits.cpp1
-rw-r--r--clang/test/Parser/selector-1.m1
-rw-r--r--clang/test/Parser/top-level-semi-cxx0x.cpp1
-rw-r--r--clang/test/Parser/types.c1
-rw-r--r--clang/test/Preprocessor/comment_save_if.c1
-rw-r--r--clang/test/Preprocessor/cxx_true.cpp1
-rw-r--r--clang/test/Preprocessor/expr_define_expansion.c1
-rw-r--r--clang/test/Preprocessor/expr_multichar.c1
-rw-r--r--clang/test/Preprocessor/macro_paste_identifier_error.c1
-rw-r--r--clang/test/Preprocessor/objc-pp.m1
-rw-r--r--clang/test/Preprocessor/optimize.c3
-rw-r--r--clang/test/Preprocessor/pragma_sysheader.c3
-rw-r--r--clang/test/Preprocessor/user_defined_system_framework.c1
-rw-r--r--clang/test/Sema/PR2727.c1
-rw-r--r--clang/test/Sema/PR2728.c1
-rw-r--r--clang/test/Sema/PR2923.c1
-rw-r--r--clang/test/Sema/address-constant.c1
-rw-r--r--clang/test/Sema/align-arm-apcs.c1
-rw-r--r--clang/test/Sema/align-x86-64.c1
-rw-r--r--clang/test/Sema/align-x86.c1
-rw-r--r--clang/test/Sema/arg-scope-c99.c1
-rw-r--r--clang/test/Sema/arg-scope.c1
-rw-r--r--clang/test/Sema/arm-layout.c1
-rw-r--r--clang/test/Sema/assign-null.c1
-rw-r--r--clang/test/Sema/bitfield-layout.c1
-rw-r--r--clang/test/Sema/bitfield-promote.c1
-rw-r--r--clang/test/Sema/block-storageclass.c1
-rw-r--r--clang/test/Sema/builtin_objc_msgSend.c1
-rw-r--r--clang/test/Sema/builtins-decl.c1
-rw-r--r--clang/test/Sema/check-increment.c1
-rw-r--r--clang/test/Sema/complex-promotion.c1
-rw-r--r--clang/test/Sema/const-eval-64.c1
-rw-r--r--clang/test/Sema/const-ptr-int-ptr-cast.c1
-rw-r--r--clang/test/Sema/constant-builtins.c1
-rw-r--r--clang/test/Sema/darwin-align-cast.c1
-rw-r--r--clang/test/Sema/enum-packed.c1
-rw-r--r--clang/test/Sema/expr-comma-c99.c1
-rw-r--r--clang/test/Sema/expr-comma.c1
-rw-r--r--clang/test/Sema/format-string-percentm.c1
-rw-r--r--clang/test/Sema/implicit-builtin-freestanding.c1
-rw-r--r--clang/test/Sema/init-struct-qualified.c1
-rw-r--r--clang/test/Sema/init-vector.c1
-rw-r--r--clang/test/Sema/int-arith-convert.c1
-rw-r--r--clang/test/Sema/knr-variadic-def.c1
-rw-r--r--clang/test/Sema/many-logical-ops.c1
-rw-r--r--clang/test/Sema/member-reference.c1
-rw-r--r--clang/test/Sema/mms-bitfields.c1
-rw-r--r--clang/test/Sema/ms_wide_predefined_expr.cpp1
-rw-r--r--clang/test/Sema/overloaded-func-transparent-union.c1
-rw-r--r--clang/test/Sema/pragma-align-mac68k.c1
-rw-r--r--clang/test/Sema/pragma-align-packed.c1
-rw-r--r--clang/test/Sema/pragma-pack-2.c1
-rw-r--r--clang/test/Sema/pragma-pack-3.c1
-rw-r--r--clang/test/Sema/pragma-pack-4.c1
-rw-r--r--clang/test/Sema/pragma-pack-5.c1
-rw-r--r--clang/test/Sema/pragma-pack-6.c1
-rw-r--r--clang/test/Sema/return-silent.c1
-rw-r--r--clang/test/Sema/short-enums.c1
-rw-r--r--clang/test/Sema/struct-cast.c1
-rw-r--r--clang/test/Sema/struct-packed-align.c1
-rw-r--r--clang/test/Sema/surpress-deprecated.c1
-rw-r--r--clang/test/Sema/transparent-union-pointer.c1
-rw-r--r--clang/test/Sema/typedef-prototype.c1
-rw-r--r--clang/test/Sema/unnamed-bitfield-init.c1
-rw-r--r--clang/test/Sema/va_arg_x86_64.c1
-rw-r--r--clang/test/Sema/variadic-block.c1
-rw-r--r--clang/test/Sema/vfprintf-valid-redecl.c1
-rw-r--r--clang/test/Sema/warn-gnu-designators.c1
-rw-r--r--clang/test/Sema/weak-import-on-enum.c1
-rw-r--r--clang/test/SemaCXX/2008-01-11-BadWarning.cpp1
-rw-r--r--clang/test/SemaCXX/MicrosoftCompatibilityNoExceptions.cpp1
-rw-r--r--clang/test/SemaCXX/PR10447.cpp1
-rw-r--r--clang/test/SemaCXX/PR5086-ambig-resolution-enum.cpp1
-rw-r--r--clang/test/SemaCXX/PR6562.cpp1
-rw-r--r--clang/test/SemaCXX/PR9884.cpp1
-rw-r--r--clang/test/SemaCXX/PR9902.cpp1
-rw-r--r--clang/test/SemaCXX/PR9908.cpp1
-rw-r--r--clang/test/SemaCXX/__try.cpp1
-rw-r--r--clang/test/SemaCXX/anonymous-union-cxx11.cpp1
-rw-r--r--clang/test/SemaCXX/blocks-1.cpp1
-rw-r--r--clang/test/SemaCXX/blocks.cpp1
-rw-r--r--clang/test/SemaCXX/borland-extensions.cpp1
-rw-r--r--clang/test/SemaCXX/builtin-exception-spec.cpp1
-rw-r--r--clang/test/SemaCXX/builtin-ptrtomember-overload.cpp1
-rw-r--r--clang/test/SemaCXX/builtin_objc_msgSend.cpp1
-rw-r--r--clang/test/SemaCXX/cast-explicit-ctor.cpp1
-rw-r--r--clang/test/SemaCXX/class-layout.cpp1
-rw-r--r--clang/test/SemaCXX/comma.cpp1
-rw-r--r--clang/test/SemaCXX/complex-init-list.cpp1
-rw-r--r--clang/test/SemaCXX/constexpr-turing.cpp1
-rw-r--r--clang/test/SemaCXX/decltype-98.cpp1
-rw-r--r--clang/test/SemaCXX/decltype-pr4444.cpp1
-rw-r--r--clang/test/SemaCXX/decltype-pr4448.cpp1
-rw-r--r--clang/test/SemaCXX/decltype-this.cpp1
-rw-r--r--clang/test/SemaCXX/decltype.cpp1
-rw-r--r--clang/test/SemaCXX/default-argument-temporaries.cpp1
-rw-r--r--clang/test/SemaCXX/do-while-scope.cpp1
-rw-r--r--clang/test/SemaCXX/empty-class-layout.cpp1
-rw-r--r--clang/test/SemaCXX/exception-spec-no-exceptions.cpp1
-rw-r--r--clang/test/SemaCXX/friend-out-of-line.cpp1
-rw-r--r--clang/test/SemaCXX/gnu-case-ranges.cpp1
-rw-r--r--clang/test/SemaCXX/goto2.cpp1
-rw-r--r--clang/test/SemaCXX/indirect-goto.cpp1
-rw-r--r--clang/test/SemaCXX/issue547.cpp1
-rw-r--r--clang/test/SemaCXX/local-classes.cpp1
-rw-r--r--clang/test/SemaCXX/lookup-member.cpp1
-rw-r--r--clang/test/SemaCXX/member-expr-anonymous-union.cpp1
-rw-r--r--clang/test/SemaCXX/member-expr-static.cpp1
-rw-r--r--clang/test/SemaCXX/member-pointer-size.cpp1
-rw-r--r--clang/test/SemaCXX/ms-exception-spec.cpp1
-rw-r--r--clang/test/SemaCXX/new-delete-predefined-decl-2.cpp1
-rw-r--r--clang/test/SemaCXX/new-delete-predefined-decl.cpp1
-rw-r--r--clang/test/SemaCXX/no-warn-composite-pointer-type.cpp1
-rw-r--r--clang/test/SemaCXX/nullptr-98.cpp1
-rw-r--r--clang/test/SemaCXX/overload-value-dep-arg.cpp1
-rw-r--r--clang/test/SemaCXX/overloaded-builtin-operators-0x.cpp1
-rw-r--r--clang/test/SemaCXX/pragma-pack.cpp1
-rw-r--r--clang/test/SemaCXX/pragma-unused.cpp1
-rw-r--r--clang/test/SemaCXX/prefetch-enum.cpp1
-rw-r--r--clang/test/SemaCXX/primary-base.cpp1
-rw-r--r--clang/test/SemaCXX/ptrtomember-overload-resolution.cpp1
-rw-r--r--clang/test/SemaCXX/qualified-member-enum.cpp1
-rw-r--r--clang/test/SemaCXX/short-wchar-sign.cpp1
-rw-r--r--clang/test/SemaCXX/static-initializers.cpp1
-rw-r--r--clang/test/SemaCXX/tag-ambig.cpp1
-rw-r--r--clang/test/SemaCXX/trivial-constructor.cpp1
-rw-r--r--clang/test/SemaCXX/trivial-destructor.cpp1
-rw-r--r--clang/test/SemaCXX/unused-functions.cpp1
-rw-r--r--clang/test/SemaCXX/using-decl-pr4441.cpp1
-rw-r--r--clang/test/SemaCXX/using-decl-pr4450.cpp1
-rw-r--r--clang/test/SemaCXX/value-dependent-exprs.cpp1
-rw-r--r--clang/test/SemaCXX/vararg-default-arg.cpp1
-rw-r--r--clang/test/SemaCXX/warn-new-overaligned-2.cpp1
-rw-r--r--clang/test/SemaCXX/warn-self-comparisons.cpp1
-rw-r--r--clang/test/SemaCXX/zero-length-arrays.cpp1
-rw-r--r--clang/test/SemaObjC/ClassPropertyNotObject.m1
-rw-r--r--clang/test/SemaObjC/ContClassPropertyLookup.m1
-rw-r--r--clang/test/SemaObjC/arc-readonly-property-ivar-1.m1
-rw-r--r--clang/test/SemaObjC/arc-readonly-property-ivar.m1
-rw-r--r--clang/test/SemaObjC/arc-setter-property-match.m1
-rw-r--r--clang/test/SemaObjC/arc-unsafe_unretained.m1
-rw-r--r--clang/test/SemaObjC/attr-cleanup.m1
-rw-r--r--clang/test/SemaObjC/block-as-object.m1
-rw-r--r--clang/test/SemaObjC/block-ivar.m1
-rw-r--r--clang/test/SemaObjC/block-return.m1
-rw-r--r--clang/test/SemaObjC/builtin_objc_assign_ivar.m1
-rw-r--r--clang/test/SemaObjC/builtin_objc_msgSend.m1
-rw-r--r--clang/test/SemaObjC/category-method-lookup-2.m1
-rw-r--r--clang/test/SemaObjC/category-method-lookup.m1
-rw-r--r--clang/test/SemaObjC/class-getter-using-dotsyntax.m1
-rw-r--r--clang/test/SemaObjC/class-property-access.m1
-rw-r--r--clang/test/SemaObjC/class-protocol.m1
-rw-r--r--clang/test/SemaObjC/comptypes-2.m1
-rw-r--r--clang/test/SemaObjC/comptypes-8.m1
-rw-r--r--clang/test/SemaObjC/conditional-expr-5.m1
-rw-r--r--clang/test/SemaObjC/conditional-expr-6.m1
-rw-r--r--clang/test/SemaObjC/conditional-expr-7.m1
-rw-r--r--clang/test/SemaObjC/conditional-expr-8.m1
-rw-r--r--clang/test/SemaObjC/conflict-nonfragile-abi2.m1
-rw-r--r--clang/test/SemaObjC/delay-parsing-cfunctions.m1
-rw-r--r--clang/test/SemaObjC/direct-synthesized-ivar-access.m1
-rw-r--r--clang/test/SemaObjC/enhanced-proto-2.m1
-rw-r--r--clang/test/SemaObjC/enum-fixed-type.m1
-rw-r--r--clang/test/SemaObjC/getter-setter-defined-in-category-of-parent.m1
-rw-r--r--clang/test/SemaObjC/id_builtin.m1
-rw-r--r--clang/test/SemaObjC/ignore-qualifier-on-qualified-id.m1
-rw-r--r--clang/test/SemaObjC/ignore-weakimport-method.m1
-rw-r--r--clang/test/SemaObjC/interface-layout-2.m1
-rw-r--r--clang/test/SemaObjC/interface-layout.m1
-rw-r--r--clang/test/SemaObjC/interface-scope-2.m1
-rw-r--r--clang/test/SemaObjC/interface-scope.m1
-rw-r--r--clang/test/SemaObjC/ivar-access-package.m1
-rw-r--r--clang/test/SemaObjC/method-conflict-1.m1
-rw-r--r--clang/test/SemaObjC/method-in-class-extension-impl.m1
-rw-r--r--clang/test/SemaObjC/method-lookup-2.m1
-rw-r--r--clang/test/SemaObjC/method-lookup-4.m1
-rw-r--r--clang/test/SemaObjC/nested-typedef-decl.m1
-rw-r--r--clang/test/SemaObjC/no-gc-weak-test.m1
-rw-r--r--clang/test/SemaObjC/no-ivar-access-control.m1
-rw-r--r--clang/test/SemaObjC/no-warn-qual-mismatch.m1
-rw-r--r--clang/test/SemaObjC/no-warn-synth-protocol-meth.m1
-rw-r--r--clang/test/SemaObjC/no-warn-unimpl-method.m1
-rw-r--r--clang/test/SemaObjC/no-warning-unavail-unimp.m1
-rw-r--r--clang/test/SemaObjC/nowarn-superclass-method-mismatch.m1
-rw-r--r--clang/test/SemaObjC/nsobject-attribute-1.m1
-rw-r--r--clang/test/SemaObjC/objc-buffered-methods.m1
-rw-r--r--clang/test/SemaObjC/objc-qualified-property-lookup.m1
-rw-r--r--clang/test/SemaObjC/overriding-property-in-class-extension.m1
-rw-r--r--clang/test/SemaObjC/pedantic-dynamic-test.m1
-rw-r--r--clang/test/SemaObjC/pragma-pack.m1
-rw-r--r--clang/test/SemaObjC/property-11.m1
-rw-r--r--clang/test/SemaObjC/property-13.m1
-rw-r--r--clang/test/SemaObjC/property-2.m1
-rw-r--r--clang/test/SemaObjC/property-6.m1
-rw-r--r--clang/test/SemaObjC/property-7.m1
-rw-r--r--clang/test/SemaObjC/property-8.m1
-rw-r--r--clang/test/SemaObjC/property-9-impl-method.m1
-rw-r--r--clang/test/SemaObjC/property-and-ivar-use.m1
-rw-r--r--clang/test/SemaObjC/property-dot-receiver.m1
-rw-r--r--clang/test/SemaObjC/property-method-lookup-impl.m1
-rw-r--r--clang/test/SemaObjC/property-nonfragile-abi.m1
-rw-r--r--clang/test/SemaObjC/property-noprotocol-warning.m1
-rw-r--r--clang/test/SemaObjC/property-redundant-decl-accessor.m1
-rw-r--r--clang/test/SemaObjC/property-weak.m1
-rw-r--r--clang/test/SemaObjC/props-on-prots.m1
-rw-r--r--clang/test/SemaObjC/protocol-expr-1.m1
-rw-r--r--clang/test/SemaObjC/protocol-implementation-inherited.m1
-rw-r--r--clang/test/SemaObjC/protocol-lookup-2.m1
-rw-r--r--clang/test/SemaObjC/protocol-lookup.m1
-rw-r--r--clang/test/SemaObjC/protocol-qualified-class-unsupported.m1
-rw-r--r--clang/test/SemaObjC/rdar6248119.m1
-rw-r--r--clang/test/SemaObjC/restrict-id-type.m1
-rw-r--r--clang/test/SemaObjC/selector-1.m1
-rw-r--r--clang/test/SemaObjC/selector-2.m1
-rw-r--r--clang/test/SemaObjC/self-declared-in-block.m1
-rw-r--r--clang/test/SemaObjC/self-in-function.m1
-rw-r--r--clang/test/SemaObjC/setter-dotsyntax.m1
-rw-r--r--clang/test/SemaObjC/super-cat-prot.m1
-rw-r--r--clang/test/SemaObjC/super-property-message-expr.m1
-rw-r--r--clang/test/SemaObjC/super-property-notation.m1
-rw-r--r--clang/test/SemaObjC/synth-provisional-ivars-1.m1
-rw-r--r--clang/test/SemaObjC/synthesize-setter-contclass.m1
-rw-r--r--clang/test/SemaObjC/transparent-union.m1
-rw-r--r--clang/test/SemaObjC/ucn-objc-string.m1
-rw-r--r--clang/test/SemaObjC/va-method-1.m1
-rw-r--r--clang/test/SemaObjC/writable-property-in-superclass.m1
-rw-r--r--clang/test/SemaObjCXX/arc-bool-conversion.mm1
-rw-r--r--clang/test/SemaObjCXX/arc-libstdcxx.mm1
-rw-r--r--clang/test/SemaObjCXX/arc-memfunc.mm1
-rw-r--r--clang/test/SemaObjCXX/arc-type-traits.mm1
-rw-r--r--clang/test/SemaObjCXX/argument-dependent-lookup.mm1
-rw-r--r--clang/test/SemaObjCXX/composite-objc-pointertype.mm1
-rw-r--r--clang/test/SemaObjCXX/conversion-ranking.mm1
-rw-r--r--clang/test/SemaObjCXX/conversion-to-objc-pointer-2.mm1
-rw-r--r--clang/test/SemaObjCXX/conversion-to-objc-pointer.mm1
-rw-r--r--clang/test/SemaObjCXX/debugger-support.mm1
-rw-r--r--clang/test/SemaObjCXX/delay-parsing-cfunctions.mm1
-rw-r--r--clang/test/SemaObjCXX/delay-parsing-cplusfuncs.mm1
-rw-r--r--clang/test/SemaObjCXX/delay-parsing-func-tryblock.mm1
-rw-r--r--clang/test/SemaObjCXX/expr-objcxx.mm1
-rw-r--r--clang/test/SemaObjCXX/function-pointer-void-star.mm1
-rw-r--r--clang/test/SemaObjCXX/instantiate-method-return.mm1
-rw-r--r--clang/test/SemaObjCXX/ivar-lookup.mm1
-rw-r--r--clang/test/SemaObjCXX/ivar-struct.mm1
-rw-r--r--clang/test/SemaObjCXX/linkage-spec.mm1
-rw-r--r--clang/test/SemaObjCXX/namespace-lookup.mm1
-rw-r--r--clang/test/SemaObjCXX/null_objc_pointer.mm1
-rw-r--r--clang/test/SemaObjCXX/nullptr.mm1
-rw-r--r--clang/test/SemaObjCXX/overload-gc.mm1
-rw-r--r--clang/test/SemaObjCXX/pointer-to-objc-pointer-conv.mm1
-rw-r--r--clang/test/SemaObjCXX/property-type-mismatch.mm1
-rw-r--r--clang/test/SemaObjCXX/references.mm1
-rw-r--r--clang/test/SemaObjCXX/reinterpret-cast-objc-pointertype.mm1
-rw-r--r--clang/test/SemaObjCXX/reserved-keyword-methods.mm1
-rw-r--r--clang/test/SemaObjCXX/standard-conversion-to-bool.mm1
-rw-r--r--clang/test/SemaObjCXX/static-cast.mm1
-rw-r--r--clang/test/SemaObjCXX/vla.mm1
-rw-r--r--clang/test/SemaOpenCL/cond.cl1
-rw-r--r--clang/test/SemaOpenCL/init.cl1
-rw-r--r--clang/test/SemaOpenCL/vec_compare.cl1
-rw-r--r--clang/test/SemaOpenCL/vector_literals_const.cl1
-rw-r--r--clang/test/SemaTemplate/ackermann.cpp1
-rw-r--r--clang/test/SemaTemplate/alias-church-numerals.cpp1
-rw-r--r--clang/test/SemaTemplate/alias-template-template-param.cpp1
-rw-r--r--clang/test/SemaTemplate/array-to-pointer-decay.cpp1
-rw-r--r--clang/test/SemaTemplate/atomics.cpp1
-rw-r--r--clang/test/SemaTemplate/default-arguments-cxx0x.cpp1
-rw-r--r--clang/test/SemaTemplate/dependent-base-member-init.cpp1
-rw-r--r--clang/test/SemaTemplate/dependent-expr.cpp1
-rw-r--r--clang/test/SemaTemplate/enum-argument.cpp1
-rw-r--r--clang/test/SemaTemplate/example-typelist.cpp1
-rw-r--r--clang/test/SemaTemplate/instantiate-array.cpp1
-rw-r--r--clang/test/SemaTemplate/instantiate-attr.cpp1
-rw-r--r--clang/test/SemaTemplate/instantiate-decl-init.cpp1
-rw-r--r--clang/test/SemaTemplate/instantiate-declref-ice.cpp1
-rw-r--r--clang/test/SemaTemplate/instantiate-deeply.cpp1
-rw-r--r--clang/test/SemaTemplate/instantiate-dependent-nested-name.cpp1
-rw-r--r--clang/test/SemaTemplate/instantiate-elab-type-specifier.cpp1
-rw-r--r--clang/test/SemaTemplate/instantiate-enum-2.cpp1
-rw-r--r--clang/test/SemaTemplate/instantiate-friend-class.cpp1
-rw-r--r--clang/test/SemaTemplate/instantiate-local-class.cpp1
-rw-r--r--clang/test/SemaTemplate/instantiate-non-type-template-parameter.cpp1
-rw-r--r--clang/test/SemaTemplate/instantiate-overloaded-arrow.cpp1
-rw-r--r--clang/test/SemaTemplate/instantiate-sizeof.cpp1
-rw-r--r--clang/test/SemaTemplate/instantiation-default-3.cpp1
-rw-r--r--clang/test/SemaTemplate/issue150.cpp1
-rw-r--r--clang/test/SemaTemplate/lookup-dependent-bases.cpp1
-rw-r--r--clang/test/SemaTemplate/member-initializers.cpp1
-rw-r--r--clang/test/SemaTemplate/nested-linkage.cpp1
-rw-r--r--clang/test/SemaTemplate/operator-function-id-template.cpp1
-rw-r--r--clang/test/SemaTemplate/overload-uneval.cpp1
-rw-r--r--clang/test/SemaTemplate/pragma-ms_struct.cpp1
-rw-r--r--clang/test/SemaTemplate/temp_class_spec_blocks.cpp1
-rw-r--r--clang/test/SemaTemplate/template-class-traits.cpp1
-rw-r--r--clang/test/SemaTemplate/typo-dependent-name.cpp1
-rw-r--r--clang/test/SemaTemplate/unresolved-construct.cpp1
580 files changed, 619 insertions, 6 deletions
diff --git a/clang/test/ASTMerge/exprs.c b/clang/test/ASTMerge/exprs.c
index 0a4e1e51e24..c82e6831f5c 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 939af06b765..3268e1eae25 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 5ffcaae07fc..853bfb24dac 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 29803382276..b465959791b 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 602ed07ed51..1d77d1e3702 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 fafb44f1343..6d547f47f66 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 <stdarg.h>
diff --git a/clang/test/Analysis/OSAtomic_mac.cpp b/clang/test/Analysis/OSAtomic_mac.cpp
index 8ad7b3c3da6..f93895893c5 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 53b919b729b..1712feff5b7 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 7497d5627c9..2807c44ab7b 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 0e158d34ec4..1c0f35749b2 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 0560692d815..1a78940eee2 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 03e42220b22..7fce2263c23 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 e1a8805fbc1..0023d13703a 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 <rdar:problem/6080742>.
// 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 24244cb5eff..bbff64b7a13 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 d460df07159..819afca967c 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 f8975abc185..bae3d0a1642 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 7d57c353968..21be5e4bd3f 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 16bfc891000..d0b9222b6a6 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 9edb60d8c13..5a807ed52c9 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 7fc4f2bb961..28e9006c18e 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 9ec2d08f399..06029731694 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 ef00cf975cb..306376dd575 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 2a39c66fcb1..bae7434518e 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 05f56fbc58e..e7f4775925a 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 1dcebbe64d6..71a379a02c7 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 963b572b1e3..34502c4aa81 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 0cc42f50372..9a6bd593974 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 79d52530836..e3a0408863e 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 701479faa82..a1709428402 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 dcda8d7667d..1fbbeefd2ae 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
// <rdar://problem/6440393> - 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 a909ef13d0f..1ff0f17cea5 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
// <rdar://problem/11405978> - 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 58d9c8e1488..9fbe3d0e4ee 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 0f7040a0527..bed6fc30d31 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 9ff877240cf..4575ad44977 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 a5b0b8d4b58..c19a90f011c 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 ee248e04c16..b3c3fbcc624 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 30dba25d1db..5bb945486fb 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 f95736a6df5..a2d10cc3bad 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 972a6b2dd40..0d2ca41b32e 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 aad055a70a1..0fb49c2a9b2 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 d2f5fd9855a..1c866bb0373 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 3f3c778779f..74d5484fae8 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 2b998200e70..ae5bf2647f7 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 98ac582b762..9edb35b78b7 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 09c3f102e3a..d6201500857 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 c2869cabae9..7759aa73b33 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 709262535f7..dcd49e11a16 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 bc79f859053..41d4fe21c2f 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 ded8dc91bfb..f97eefb950e 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 55feb73e6bc..b5663ca0277 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 <stdarg.h>
diff --git a/clang/test/Analysis/uninit-vals.m b/clang/test/Analysis/uninit-vals.m
index 4ba26f59b72..1cd57590df0 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 1a716847186..3a9fb93bf8a 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 e7671a90b90..2bffe78b41c 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 f650ad517a1..eda869b9934 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 cd7e669527b..ef4243e28e8 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 792545453e7..a4721d61a87 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 dc0f8b4af23..1060f615991 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 38eccfa2248..7c292d58f50 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 ab0dc248f3d..91f5a54eb9c 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 878ff078bc2..6bf74c1da13 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 58d7ff4d16a..ba34571d7b6 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 0fa4f650b0b..4ffe538bebb 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 20a7ae05a12..abcc6eee94a 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 e64b6752f08..c6275353804 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 b8dfbe78b6c..b27d492afc4 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 785382cd077..65cd2027109 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 81b08b98758..2b082ec604e 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 e3209fd3ce9..45f643fd9a3 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 6cd587c4de4..9a740df5ceb 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 4567c469e81..9819ea0293f 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 dc9b20d17c0..c1cf047aadb 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 7ef53d36ab7..87e0f748615 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 a9dca4fa8ec..3bb32718361 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 235f295d127..6e3d85001fa 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 c4c4ca7e094..677411fe3c8 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 be5fdffb43f..5c327880e4b 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 e153b4daaf3..cf628a6343a 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 6549a1a0bda..ca64cfa8d0e 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 <stdint.h>
diff --git a/clang/test/CXX/conv/conv.prom/p4.cpp b/clang/test/CXX/conv/conv.prom/p4.cpp
index 5f34dc4d397..8c86d2a1838 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 8808d203fd9..b7617696e6f 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 ae75ec41bd8..bfadc6cac48 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 411c16cd8df..943e05322d2 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 546c4a477f7..ae40062fe14 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 dd44bfc914b..699d80ae7c7 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 4cb91cdf002..2bcbe269e12 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
// <rdar://problem/8296180>
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 885d11b9c24..2c9cd88e40b 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 20c059eab6f..76053f028e2 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 3631af1b7fd..878d2c68ec3 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 0a107eb2b13..68aabca71ea 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 0e69521fbdf..bc249b5a087 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<typename T> struct identity;
template<typename ...Types> 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 4ce80bc35ac..cd623df71e8 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<typename T, typename U>
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 9838b4f4737..e032a7f92a5 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 98c33b25f4d..35177a03869 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 81ca2ae0a20..b6d3e9c7aba 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 0e4fad53e35..1f6bf2131cd 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 96bf5f91196..76ac3180173 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 c891374519f..7d12cedeacf 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
// <rdar://problem/11121178>
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 6ba8d519346..be898761faf 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<T>(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 98771d34b63..db33c014eeb 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<typename T> 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 9ef15e6642b..830ccda245b 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 731c5084442..c624c7e3f2f 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 253744e23f5..568c61b95fb 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 c4deba9c974..b4b1605ab00 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 930a4b32fa0..93c2805497f 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<typename T, typename U>
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 4487cfc4ba2..17eb841fc3f 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<typename T>
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 7139058cd08..bc2c9997379 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 b5de1a7f8fe..1f5969d4932 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 2dd6b23fa02..08ab0ca56fb 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 2f6c094301e..471d1c5a302 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 803b0cc459b..4c60b8ba62e 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 5342153b63b..f84f5fba3e0 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 2be03285fe6..c74d8f358d0 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 41255214ec6..a1c0d4f3f61 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 <typename T> operator T();
diff --git a/clang/test/CXX/over/over.built/p25.cpp b/clang/test/CXX/over/over.built/p25.cpp
index aea3854a420..09e550ddc0e 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 3971acc5816..f813305b4a1 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 5c315a73605..59e3dac7428 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<typename T> 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 c8b07e53fae..35f8808fff8 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 3845af09d14..68c79900b95 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<typename T> T &lvalue();
template<typename T> 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 72411b954e1..74e9457bb55 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 d2add82f420..5a45f7c358a 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 fff88442555..9d03a55423d 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 a2613f46129..4a9f3f2113d 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 9500a7d2346..4d821841e47 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 b05c992f411..4a10eb9e0d0 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 000c870d590..d0f15d4d3df 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 b03ed46e92f..67f317b0180 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 966e3c10e5d..aafe4808bb1 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<typename T> 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 2a3e9142169..df0e68d29b6 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<char C1, char C2>
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 97457ea213b..64cc5923f00 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<int I, int J, class T> 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 87e21e4af84..184160ac78d 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<typename T, int N>
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 4c05c622926..213f0c60d5b 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<typename T> 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 70c9c70a41c..fcbb724a7af 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 4d566538452..6d22f880936 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 815f8bfb567..8212a125be6 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<typename T>
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 4d34968d32a..5f2dbb6018c 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<class T> int &f(T);
template<class T> 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 f42b94a727d..d24a3fb71d5 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<typename T> 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 63fd3df2690..4b899e4e521 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 T> 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 f5f12055c19..01eab24757f 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 <class T> 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 fec8060955e..2e24fc00dc1 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<unsigned I, typename ...Types>
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 db28eea98a5..83e03bcc0dd 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 e15203abc61..4cbacf83026 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 9de5fa84b48..f5800471ac2 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 b5786acf82a..c09c0b243a9 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 71bd6aa8eb5..36535e3f90e 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<typename ...Types> 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 4d29b740d80..36b07002cf3 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<typename ...> 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 81addfe4bdc..a9bda621e98 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<unsigned N, typename ...Types> 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 c14b063ab74..47184ec0345 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 6481485b2a0..1907bd77998 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 c165c453066..4be81d88258 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<typename T> 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 83b5f231401..132d6181422 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<class T> 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 5a9ea084fd6..badd5a8c6a2 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 e23e98abe64..a5916ba6537 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<typename T>
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 b96530056b2..ec7e8970b1b 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 f204caf57ab..cc129c0a9b2 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<typename T> int &f0(T&);
template<typename T> 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 8183061a8ab..b38ade39edf 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<typename T> 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 5b031c24ed7..e3a9f5798db 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 4e98a6d15e1..20e6ea2d712 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 fcc6cf7ec73..09b1648e68e 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 c819d973a94..d239a5e1720 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 a6b1172afcc..6ef8e2fd5ec 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 93e45dd7e3b..532dd84ecb4 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 103a1bd537f..64ca80517b8 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<typename U>
diff --git a/clang/test/CXX/temp/temp.param/p10-0x.cpp b/clang/test/CXX/temp/temp.param/p10-0x.cpp
index 37bb284a36e..21a96bf613e 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<typename> struct Y1;
template<typename, int> struct Y2;
diff --git a/clang/test/CXX/temp/temp.param/p10.cpp b/clang/test/CXX/temp/temp.param/p10.cpp
index b9dac75beb9..4feea828466 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<typename> struct Y1;
template<typename, int> struct Y2;
diff --git a/clang/test/CXX/temp/temp.param/p13.cpp b/clang/test/CXX/temp/temp.param/p13.cpp
index 7e7dbe58a7b..257b36f4f96 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 fed6e9c266b..4eca05774ab 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 3cbb3b7c010..67efc4e4816 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<const int I> 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 fed048cad8b..592e41ec408 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<int X[10]> struct A;
template<int *X> struct A;
template<int f(float, double)> 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 c41a4c60ee7..88b4752e6b7 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 0aba4028b76..8f2a599ab28 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<int n> 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 1ad4464c975..f6ef636daa5 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 bd05e756a19..3fa9c995260 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<class T> 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 5d9d50913f3..fecfed06f10 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 3843c0d2c88..263356e949a 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 5fa2f627b00..f03811f35e6 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 T> class Array { /* ... */ };
template<class T> void sort(Array<T>& 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 d4ce01fd650..10ec66d5399 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 T> 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 4ca54283157..5363cbe0aed 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 <typename T> 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 1028830abe7..146b6b5da80 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 13822725b5b..0f5db211905 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 T> class Array { /* ... */ };
template<class T> void sort(Array<T>& v) { }
diff --git a/clang/test/CodeGen/2009-06-01-addrofknr.c b/clang/test/CodeGen/2009-06-01-addrofknr.c
index 17d6fdf5d89..f987e3270c8 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 140ff6c4243..2855045c1e7 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 <stddef.h>
diff --git a/clang/test/CodeGen/arm-apcs-zerolength-bitfield.c b/clang/test/CodeGen/arm-apcs-zerolength-bitfield.c
index 049ffae4dc6..763db65063f 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 e6307964294..28364dec9aa 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 8fbeadf1491..e62e225a201 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 ce4640a7edd..5469d113357 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 41bb5e29d58..99b8ecd555c 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 <class scriptmemberptr> int InitMember(scriptmemberptr);
diff --git a/clang/test/CodeGenCXX/enum.cpp b/clang/test/CodeGenCXX/enum.cpp
index cfcd264bd34..3985e96ab9f 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 1d4f430e5cb..802ed4628d9 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<typename E>
diff --git a/clang/test/CodeGenCXX/instantiate-init-list.cpp b/clang/test/CodeGenCXX/instantiate-init-list.cpp
index 49c6f51c775..e498d2476c0 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 2054137fe94..3def43ebc05 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 688d92d74b8..d509b0ebac2 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 2c50e18b6ff..be171a365b0 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 49859acf4fa..641734d223a 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 <stddef.h>
diff --git a/clang/test/CodeGenCXX/reference-bind-default-argument.cpp b/clang/test/CodeGenCXX/reference-bind-default-argument.cpp
index acce962b195..5cf279f62a1 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 9469c84eb5d..d47b1f37489 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 53dc9a73805..ff82f6dc549 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 768e6de92c0..354fcd4dda5 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 0de6683f88d..cb4a6c69bdd 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 2515acb48ee..f04185b23f1 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 a11c67e1289..3c6f9c03aa4 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 e44939337a6..21246a37a6a 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 2cdc26ddcaa..a994cb75ef6 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 <stddef.h>
#include <stdarg.h>
diff --git a/clang/test/Frontend/iframework.c b/clang/test/Frontend/iframework.c
index 7180416e998..6f801f2437a 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 <TestFramework/TestFramework.h>
diff --git a/clang/test/Frontend/macros.c b/clang/test/Frontend/macros.c
index 828c7628403..68f220339db 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 53a5a45a433..eea025ceeea 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 883dafb1f50..623e5e3933a 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 d8d2769fc53..6644042e24e 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 eea8d44d8dc..acf01b40e06 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 16b42d2d7f8..442f8a0cc23 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 <stdint.h>
typedef unsigned long long uint64_t;
diff --git a/clang/test/Headers/typedef_guards.c b/clang/test/Headers/typedef_guards.c
index 646b2ca0efe..968b26d8c73 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 93a99ad78f2..35ae7affb51 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 <stdint.h>
diff --git a/clang/test/Headers/wmmintrin.c b/clang/test/Headers/wmmintrin.c
index 6aa8be49881..8cabbf06638 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 <wmmintrin.h>
diff --git a/clang/test/Lexer/clang-keywords.cpp b/clang/test/Lexer/clang-keywords.cpp
index a349b44ade2..3a24dce981a 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 cf6e4789afa..e940caf44f4 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 <stdint.h>
diff --git a/clang/test/Lexer/gnu_keywords.c b/clang/test/Lexer/gnu_keywords.c
index c4bd9b3e59d..10a7d31d203 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 c3f371d17f0..1a0f37b7ff4 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 9ef6e32ea0b..3469b59d408 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 3c45f28336f..eeabe8bb9fc 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 5407ba9824f..60981feee16 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 96e8485a70a..e58b2267ddb 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 d1426cca14a..b77b95e7961 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 87f676e89fc..63944b03d8f 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 <stdint.h>
diff --git a/clang/test/Modules/Inputs/lookup_right.hpp b/clang/test/Modules/Inputs/lookup_right.hpp
index 884534747f6..b2611a1380c 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 de6f57b5f28..d974dae52e0 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 5444854a62b..49549d0c671 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 bee1cec98e4..8c61bc081c2 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 2b8c5456eb6..8b50529f1a2 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 3f3e6954cc2..221e154cb27 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 e014bead73b..a758abc248d 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 e2d762c11e5..45417401d86 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 23c54ea8fb8..efe5c1b3663 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 99bc14dc2fb..160829b7a6e 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 eed2224d415..da9eef7496c 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 1b91c732b4d..7836e09d88f 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 c99d6d43ae5..03fdee70b85 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 0d50e61c5a9..4b64f51143d 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 f5724c4c134..bffa09228f9 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 18356f75a0e..b0fd63de46d 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 585da448650..13f2e39b148 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 ad4519279ae..556c28ea0f5 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 9cd31941e35..b7707e0b934 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 bdba42bbcb5..f7d45cea8df 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 74df01a094b..3b4fe77c044 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 ccdc874cb1f..ff6322d49d6 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 6ec65b24861..40490ea681f 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 1803a11b96b..afbb80b7376 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 0fd3de7f6c8..e0ff27c020c 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 6312ca97882..d27e9ca93c4 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 3df34794f2e..938f36f2c27 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<int>::__value;
bool _Is_empty_check = __is_empty<int>::__value;
diff --git a/clang/test/PCH/cxx-typeid.cpp b/clang/test/PCH/cxx-typeid.cpp
index 41dd544807e..d1e0f9ded75 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 c78a1a57047..dc00758aa52 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<int> spi = shared_ptr<int>::allocate_shared(1, 2);
diff --git a/clang/test/PCH/cxx11-exception-spec.cpp b/clang/test/PCH/cxx11-exception-spec.cpp
index 3fca4e48acf..446619ed1c9 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 01fc33a9a84..0fb7590c68b 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 10ceb7c60b0..81dbd907ac7 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 5928abda58f..c0b279f88a3 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 1e59054a2e5..ad7a6c3138f 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 277c6dd6c2f..c7dd805b3e4 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 cce3173bba0..c1220f80b5a 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 8ef33511503..e41daddb8b5 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 e8aab843dc5..ea40460fb8d 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 b51cd90927a..88a09192805 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 b612d89e945..2ca0e6e9356 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 5b996bb2f0d..103b252416d 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 b304c4bf8c3..601c940cee9 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 fb465a37ce3..7639f1f0db6 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 97e22cf9d6f..4bec0508b14 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 29edb753e41..52873bfc244 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 97ba1134921..53cd9972522 100644
--- a/clang/test/Parser/block-block-storageclass.c
+++ b/clang/test/Parser/block-block-storageclass.c
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -fsyntax-only -fblocks -verify %s
+// expected-no-diagnostics
int printf(const char *, ...);
void _Block_byref_release(void*src){}
diff --git a/clang/test/Parser/block-pointer-decl.c b/clang/test/Parser/block-pointer-decl.c
index a8cc258ca37..d88daf3a870 100644
--- a/clang/test/Parser/block-pointer-decl.c
+++ b/clang/test/Parser/block-pointer-decl.c
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -fsyntax-only -verify -fblocks %s
+// expected-no-diagnostics
int printf(char const *, ...);
diff --git a/clang/test/Parser/check-objc2-syntax-1.m b/clang/test/Parser/check-objc2-syntax-1.m
index 3cdf2b05cf8..9aff9637740 100644
--- a/clang/test/Parser/check-objc2-syntax-1.m
+++ b/clang/test/Parser/check-objc2-syntax-1.m
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s
+// expected-no-diagnostics
@interface Subclass
+ (int)magicNumber;
diff --git a/clang/test/Parser/compound_literal.c b/clang/test/Parser/compound_literal.c
index 4f3609dc29f..9a0e4a64a65 100644
--- a/clang/test/Parser/compound_literal.c
+++ b/clang/test/Parser/compound_literal.c
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s
+// expected-no-diagnostics
int main() {
char *s;
s = (char []){"whatever"};
diff --git a/clang/test/Parser/cxx-attributes.cpp b/clang/test/Parser/cxx-attributes.cpp
index 8603b309001..5ea0ce22759 100644
--- a/clang/test/Parser/cxx-attributes.cpp
+++ b/clang/test/Parser/cxx-attributes.cpp
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s
+// expected-no-diagnostics
class c {
virtual void f1(const char* a, ...)
diff --git a/clang/test/Parser/cxx-extern-c-array.cpp b/clang/test/Parser/cxx-extern-c-array.cpp
index 14912fd1067..11092ad0c1c 100644
--- a/clang/test/Parser/cxx-extern-c-array.cpp
+++ b/clang/test/Parser/cxx-extern-c-array.cpp
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s
+// expected-no-diagnostics
extern "C" int myarray[];
int myarray[12] = {0};
diff --git a/clang/test/Parser/cxx0x-override-control-keywords.cpp b/clang/test/Parser/cxx0x-override-control-keywords.cpp
index 444862a5c85..be79db36e0d 100644
--- a/clang/test/Parser/cxx0x-override-control-keywords.cpp
+++ b/clang/test/Parser/cxx0x-override-control-keywords.cpp
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
+// expected-no-diagnostics
struct Base {
virtual void override();
diff --git a/clang/test/Parser/cxx11-brace-initializers.cpp b/clang/test/Parser/cxx11-brace-initializers.cpp
index a1ef0944dd1..a2102056bc1 100644
--- a/clang/test/Parser/cxx11-brace-initializers.cpp
+++ b/clang/test/Parser/cxx11-brace-initializers.cpp
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11
+// expected-no-diagnostics
struct S {
S(int, int) {}
diff --git a/clang/test/Parser/encode.m b/clang/test/Parser/encode.m
index 7b8022e78dc..056cee1ac06 100644
--- a/clang/test/Parser/encode.m
+++ b/clang/test/Parser/encode.m
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s
+// expected-no-diagnostics
int main(void) {
const char ch = @encode(char *)[0];
diff --git a/clang/test/Parser/enhanced-proto-1.m b/clang/test/Parser/enhanced-proto-1.m
index fa6e4138f1c..bad5c7c258d 100644
--- a/clang/test/Parser/enhanced-proto-1.m
+++ b/clang/test/Parser/enhanced-proto-1.m
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s
+// expected-no-diagnostics
@protocol MyProto1
@optional
diff --git a/clang/test/Parser/if-scope-c90.c b/clang/test/Parser/if-scope-c90.c
index c368fabb80e..61119eacc9e 100644
--- a/clang/test/Parser/if-scope-c90.c
+++ b/clang/test/Parser/if-scope-c90.c
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -fsyntax-only -verify -std=c90 %s
+// expected-no-diagnostics
int f (int z)
{
diff --git a/clang/test/Parser/knr_parameter_attributes.c b/clang/test/Parser/knr_parameter_attributes.c
index fb975cbf332..b11a75ed207 100644
--- a/clang/test/Parser/knr_parameter_attributes.c
+++ b/clang/test/Parser/knr_parameter_attributes.c
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -fsyntax-only -W -Wall -Werror -verify %s
+// expected-no-diagnostics
int f(int i __attribute__((__unused__)))
{
diff --git a/clang/test/Parser/namelookup-bug-1.c b/clang/test/Parser/namelookup-bug-1.c
index 8667a71657c..31d17a9d7de 100644
--- a/clang/test/Parser/namelookup-bug-1.c
+++ b/clang/test/Parser/namelookup-bug-1.c
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -verify %s
+// expected-no-diagnostics
typedef int Object;
diff --git a/clang/test/Parser/namelookup-bug-2.c b/clang/test/Parser/namelookup-bug-2.c
index 84850ffafb1..4598da05cd0 100644
--- a/clang/test/Parser/namelookup-bug-2.c
+++ b/clang/test/Parser/namelookup-bug-2.c
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -verify %s
+// expected-no-diagnostics
typedef int Object;
diff --git a/clang/test/Parser/opencl-kernel.cl b/clang/test/Parser/opencl-kernel.cl
index 3abb62b6169..01c7ed6b5ab 100644
--- a/clang/test/Parser/opencl-kernel.cl
+++ b/clang/test/Parser/opencl-kernel.cl
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only
+// expected-no-diagnostics
__kernel void test()
{
diff --git a/clang/test/Parser/parmvardecl_conversion.c b/clang/test/Parser/parmvardecl_conversion.c
index 9fa8a6880a2..f6afd120587 100644
--- a/clang/test/Parser/parmvardecl_conversion.c
+++ b/clang/test/Parser/parmvardecl_conversion.c
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s
+// expected-no-diagnostics
void f (int p[]) { p++; }
diff --git a/clang/test/Parser/pragma-options.cpp b/clang/test/Parser/pragma-options.cpp
index 152aacb8fd1..84cd38dfb3c 100644
--- a/clang/test/Parser/pragma-options.cpp
+++ b/clang/test/Parser/pragma-options.cpp
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -triple i386-apple-darwin9 -fsyntax-only -verify %s
+// expected-no-diagnostics
class C {
#pragma options align=natural
diff --git a/clang/test/Parser/recursion-limits.cpp b/clang/test/Parser/recursion-limits.cpp
index ea25dea0dac..bb7354f550c 100644
--- a/clang/test/Parser/recursion-limits.cpp
+++ b/clang/test/Parser/recursion-limits.cpp
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -fsyntax-only %s -verify
+// expected-no-diagnostics
class outer {
class inner1 { inner1(); };
class inner2 { inner2(); };
diff --git a/clang/test/Parser/selector-1.m b/clang/test/Parser/selector-1.m
index 5ba2da9931c..3e2a86d9e9b 100644
--- a/clang/test/Parser/selector-1.m
+++ b/clang/test/Parser/selector-1.m
@@ -1,5 +1,6 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s
// RUN: %clang_cc1 -x objective-c++ -fsyntax-only -verify %s
+// expected-no-diagnostics
// rdar://8366474
int main() {
diff --git a/clang/test/Parser/top-level-semi-cxx0x.cpp b/clang/test/Parser/top-level-semi-cxx0x.cpp
index be342a22570..472686e8b34 100644
--- a/clang/test/Parser/top-level-semi-cxx0x.cpp
+++ b/clang/test/Parser/top-level-semi-cxx0x.cpp
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -fsyntax-only -pedantic -std=c++11 -verify %s
+// expected-no-diagnostics
void foo();
diff --git a/clang/test/Parser/types.c b/clang/test/Parser/types.c
index 53b9dd5e9ec..db8c08303f5 100644
--- a/clang/test/Parser/types.c
+++ b/clang/test/Parser/types.c
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 %s -fsyntax-only -verify
+// expected-no-diagnostics
// Test the X can be overloaded inside the struct.
typedef int X;
diff --git a/clang/test/Preprocessor/comment_save_if.c b/clang/test/Preprocessor/comment_save_if.c
index 4946122a3f0..b972d914ebd 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 5ee29720d3d..39cb349b2a8 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 38c0384092a..3e5a2c4b0e6 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 8ab12d9ab8a..39155e41501 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 457e6f7fc1a..bba317239ac 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 0ec288c830a..3522f739344 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 <stdint.h> // no warning on #import in objc mode.
diff --git a/clang/test/Preprocessor/optimize.c b/clang/test/Preprocessor/optimize.c
index 97f841a6fbb..0167e70e012 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 17080fec53d..075c9803a50 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 8e3db561979..23f24f96fda 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 <TestFramework/TestFramework.h>
diff --git a/clang/test/Sema/PR2727.c b/clang/test/Sema/PR2727.c
index 332b0df7283..11282fdea8a 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 e9f1deaf7cd..0c994057a1e 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 f22e70dd8d3..5741de8e38e 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 e842a7396b8..c13485b37ba 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 0a5d3fe9215..544f5392319 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 edea5d8b742..09bf63390f3 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 c6cd7543c21..6b93a4893d1 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 912776ab8ff..9b2811ccc75 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 ed9261941b5..3de672be9f7 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 d017fdb8aa0..4b76515d625 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 7f172b19535..ac90850eb7c 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 <stddef.h>
diff --git a/clang/test/Sema/bitfield-layout.c b/clang/test/Sema/bitfield-layout.c
index 2655fc70cd4..d2263914758 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 4d14ad191e1..3189cd57e4f 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 9bfbfbd614e..74f1b0ea77f 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 357a5bc26eb..419e92da44e 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 d6b004aa882..729dc4599de 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 070ea74f680..ae33c208566 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 23c3b689531..a59bf718931 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 5727a93e51f..1290bf4dd85 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 8beaf9d4947..73b4a8a74fd 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 <stdint.h>
diff --git a/clang/test/Sema/constant-builtins.c b/clang/test/Sema/constant-builtins.c
index 0045ea03d49..c98f62dfc5a 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 208097481cd..bd357edcedd 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 0eb6c14dbe8..b6ba972ed68 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 d0883ba202f..6e97a4fc495 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 d3e4020af63..7902715915a 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 1ffc439af07..02fea462946 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 505e5221eff..385cf1f751c 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 49ec7cc5e06..9d18e224f8e 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 f0cf32bd3f9..a95e789e3a1 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 c56ab3b7630..0f425bd0e45 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 6d5d63208bf..934f32fd26b 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 <stdarg.h>
diff --git a/clang/test/Sema/many-logical-ops.c b/clang/test/Sema/many-logical-ops.c
index 09a76841032..ec3bbda4dd4 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 7bda14303a2..edbbea59ac8 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 9289b9029a1..d238a7a10d0 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 8e816e00b37..d56d1576cd0 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 fa0314e946f..acdc5898b02 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 64c693907f9..fd93fcbd5ca 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 <stddef.h>
diff --git a/clang/test/Sema/pragma-align-packed.c b/clang/test/Sema/pragma-align-packed.c
index 74fbd13d162..b8daf40b2c8 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 4a4c202c71a..3696a22d5aa 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 <stddef.h>
diff --git a/clang/test/Sema/pragma-pack-3.c b/clang/test/Sema/pragma-pack-3.c
index d97359e45b7..e7a6cee5505 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 b06fc0eaf15..6a09e14d88c 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 95bbe1fe7e9..24bd4cd7d92 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
// <rdar://problem/10494810> 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 40659c23bda..c87c99d5dab 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 eb9641b7f3b..83c3a0a1790 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 6605c4e8fc0..9bf0064646a 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 30ef89242af..8aa7ca90dd1 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 6ca6a6096c4..166d5eb1ff8 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 dd673b9646e..db9ab3f4eeb 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 31c93914b81..bf1fb17ac6f 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 8372154ce0e..98b1ab80999 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 f3cc49c34bf..6fa18014179 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 9f514c1f59e..2659a1b6d4c 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 ba4bb71c975..4f23cb8e081 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 <stdarg.h>
diff --git a/clang/test/Sema/vfprintf-valid-redecl.c b/clang/test/Sema/vfprintf-valid-redecl.c
index 14fbbc47ddb..5c5ce8d12b0 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 bdb3374288d..e55cfba0c58 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 3a2c0e5b3a1..ad437693a10 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 b84e7c1cf86..e27c0848ef3 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 d932b5dbbce..14e5160e090 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 08644ada4a4..5ba74aaba36 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 b5aac5f09c1..eeb73f6f56c 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 854d9b058bc..144fde68b17 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 <typename T>
diff --git a/clang/test/SemaCXX/PR9884.cpp b/clang/test/SemaCXX/PR9884.cpp
index ab883c4062c..bb8bd6a56bf 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 80086e445c5..a34f99c1228 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 <class _Tp, class _Up, bool = false>
struct __allocator_traits_rebind
diff --git a/clang/test/SemaCXX/PR9908.cpp b/clang/test/SemaCXX/PR9908.cpp
index fc090cc42f9..a15b637a03d 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 <class _Tp, class _Up>
struct __allocator_traits_rebind
diff --git a/clang/test/SemaCXX/__try.cpp b/clang/test/SemaCXX/__try.cpp
index cb5d38a097e..a0f503abe6c 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 8e682ebcda3..9f987a9681c 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 1b1509482af..02e9cac62eb 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 adbff553e60..3f81c274d04 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 483153004dc..1e4bd45612f 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 324d20ea6a1..590cd3c35d4 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 <malloc.h>
extern "C" {
diff --git a/clang/test/SemaCXX/builtin-ptrtomember-overload.cpp b/clang/test/SemaCXX/builtin-ptrtomember-overload.cpp
index c7b5173a4fb..c27d642f9a4 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 0e90d54f804..082fb2868c6 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 0052856d2ff..41d2fa2fbf2 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 d81944ab9b3..f2ff9fcfd7c 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 79ff7d1cde2..3a6162bc473 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 e75833a37db..f70f9df6c73 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 c5153788adf..07c04eff308 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 db52565e6c7..3202dfea71e 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 2f95075067a..a5ac54bc37f 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<typename T, T t>
struct TestStruct {
diff --git a/clang/test/SemaCXX/decltype-pr4448.cpp b/clang/test/SemaCXX/decltype-pr4448.cpp
index 9d33ce7341a..b781b891ffb 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 a13416f089d..21b4b60ea3c 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<typename T, typename U> struct is_same {
static const bool value = false;
diff --git a/clang/test/SemaCXX/decltype.cpp b/clang/test/SemaCXX/decltype.cpp
index a1200e08200..ef3103ded7a 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 3ab7bf4eb13..c0880d507e4 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 2602ae12f24..67534db36d6 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 c68f2bb6fb0..951f16c1b0c 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 2e180706d3b..e26e864e3d8 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 56b2daab4c4..ab75a4f8ca4 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
// <rdar://problem/10204947>
namespace N {
diff --git a/clang/test/SemaCXX/gnu-case-ranges.cpp b/clang/test/SemaCXX/gnu-case-ranges.cpp
index b082e3a6c1c..c613cecbc5a 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 01ea031ac2c..b42a6111824 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 5b3fac4a658..cb2213d78dd 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 ab03a155d36..bfec6e080ba 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<typename T>
struct classify_function {
diff --git a/clang/test/SemaCXX/local-classes.cpp b/clang/test/SemaCXX/local-classes.cpp
index 500b2197ef3..f4ca79159dc 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 c75b185bcc4..39f5a15d081 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 6e35eb2b14d..246afee2399 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 7ed60f7a17b..d4c6c0b6da2 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 3aa1eaf5f25..8b595237fca 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 <stddef.h>
struct A;
diff --git a/clang/test/SemaCXX/ms-exception-spec.cpp b/clang/test/SemaCXX/ms-exception-spec.cpp
index bda56f5468d..1be8ec29369 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 981476d4fd2..c2dfc77d01f 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 20b15b729cd..ae100653611 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 <stddef.h>
diff --git a/clang/test/SemaCXX/no-warn-composite-pointer-type.cpp b/clang/test/SemaCXX/no-warn-composite-pointer-type.cpp
index b52914a2c33..d716f45e8df 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 0d624c26de7..306b2033e45 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 c1834a72257..763daadc252 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 6a5a162af67..bf543892e43 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 <class T>
struct X
diff --git a/clang/test/SemaCXX/pragma-pack.cpp b/clang/test/SemaCXX/pragma-pack.cpp
index 5c1d5c6c82a..e468cce7f07 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 c9ddffafafa..c9eaab6d3f5 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 3c77dae70ff..5457bbe498f 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 a6cbbad2427..0b6aaef493c 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 787e33022aa..85ed0aaa4f9 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 83b0a5911d4..750821bfd81 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 9a177c04b10..7ce21c523cd 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)<wchar_t(0)) == (sizeof(wchar_t) == 4) ?1:-1];
diff --git a/clang/test/SemaCXX/static-initializers.cpp b/clang/test/SemaCXX/static-initializers.cpp
index ca49fce052e..0620f484d9c 100644
--- a/clang/test/SemaCXX/static-initializers.cpp
+++ b/clang/test/SemaCXX/static-initializers.cpp
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s
+// expected-no-diagnostics
int f() {
return 10;
}
diff --git a/clang/test/SemaCXX/tag-ambig.cpp b/clang/test/SemaCXX/tag-ambig.cpp
index 6403cf30597..bbd17e7fe9b 100644
--- a/clang/test/SemaCXX/tag-ambig.cpp
+++ b/clang/test/SemaCXX/tag-ambig.cpp
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s
+// expected-no-diagnostics
// <rdar://problem/9168556>
typedef struct Point Point;
diff --git a/clang/test/SemaCXX/trivial-constructor.cpp b/clang/test/SemaCXX/trivial-constructor.cpp
index bda206b61f9..ed5b526a124 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 db415cf9050..d3acec6284f 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 35980820389..d05ff4db605 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 39a446fed9a..da21db311bb 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 4f929ad15f5..ba81e93e0b0 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 2017ffa67c9..b26ca253b7c 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 <unsigned I>
class C0 {
diff --git a/clang/test/SemaCXX/vararg-default-arg.cpp b/clang/test/SemaCXX/vararg-default-arg.cpp
index 3c8e41cb3e3..27c2bbbf5b8 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 55050090689..e643015f31b 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 620be195c1d..2e8d130bcd5 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 05ded4ad9b3..d86ab8666d5 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
// <rdar://problem/10228639>
class Foo {
diff --git a/clang/test/SemaObjC/ClassPropertyNotObject.m b/clang/test/SemaObjC/ClassPropertyNotObject.m
index 02ed40ae338..67d76b85e7a 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 06a0ffae588..bf4f6430bae 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 c773f26cc11..418f90d38a8 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 635b9fec71d..bcc1f4b45b2 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 9158b09a47e..83a07e94f2b 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 a6c5f985df8..99e870f643a 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 8415c698f34..978498ca64b 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 a85b6067571..945d6f68d6e 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 c7ea1d96a05..5864b635012 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 15c3fb64d77..e0bac996d80 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 5839bf44441..6c28178de0e 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 bf17225a041..bfa09d9f6cf 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 a31d824d1d4..ed347c7cde0 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 4223a747947..6239e948dce 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 4ff9428e963..dd384b51083 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 c46d3fb397c..735b51a3c43 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 91cd1389f1e..021047e1205 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 74e42c96137..8e90455de66 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 750b0a6a5a9..e6510306891 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 47aed3e6a57..b1f7e599694 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 098688a8a90..e944e540b2f 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 3ddf3d73566..5b4a8632b27 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 6799983e3b1..beddd205a90 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 819732758d2..d0d6be84a65 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 a6f66fe1bd3..c74b054f74d 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 dc1491173aa..a276a64913b 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 28b03d93e2d..352f29160e5 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 95153bedb3d..4fe643faef2 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 71c3237425b..ff5c1744668 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 a1431d60abe..be42e7d7c56 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 36a2c1ad873..996664f6a9e 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 d71cebf2c79..c68c57830a9 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 02b14035a22..17e34d4681b 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 336605a7812..9b083b0154e 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 60fd900285d..ffd740f7fc4 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++
// <rdar://problem/6487662>
diff --git a/clang/test/SemaObjC/interface-scope.m b/clang/test/SemaObjC/interface-scope.m
index 0671dae61e8..9875eca5bf1 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 abc3420f1bd..ff5ff4e68ae 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 ca91ebdef23..654cd0166fb 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 c205322dec9..d74ae8f154f 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 53cae837125..25963048f74 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 700565e7832..807d4dae36b 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 bb01eadba94..7051ac689cc 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 dd9b73cc0de..6539a9b7f14 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 6f00b1a367c..9bbff24be99 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 1e3c1863667..9638da46c18 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 103f6bbd02e..cdb855e1547 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 dd6e3ad4aa3..174f70a4ee5 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 88d519d115c..d5a4eac9906 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 b211cdea37b..d522e899eb0 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 72d8fa693a9..4a75f5ce8ef 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 a4b83be0cd7..55e489798d7 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 48b28cb05ca..b5cadbd6037 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 5cbc6d2ceb7..77efd556928 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 61f36b33382..1fc5ef66b88 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 ba39257fcd5..6869bca90d0 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. <rdar://problem/10893316>
@interface X
diff --git a/clang/test/SemaObjC/property-11.m b/clang/test/SemaObjC/property-11.m
index 297611574ea..e41a840c922 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 2ca34165268..362d6d3b15d 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 f95af599027..3298ee5766e 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 933a4f0673f..f2a293ec5ea 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 "<command line>"
# 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 e6cba50f7a6..3d03b8f680d 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 8647aba8c3e..da97ffcb7ed 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 84eb3635e2a..d6220f66fa9 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 5b40d854898..a9974945b2c 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 c5a928b4e89..4a5f1959dc0 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 19d4e684944..dc490edb1fd 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 55bf91f383d..3684cb00ebb 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 71bb86a301e..e4752c52bc9 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 3b0e825b9d8..6ff2ceab7ea 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 a4397a684fc..d57774bf0fe 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 c01e8338628..6962d6f895c 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 fe01d1d47a8..94a0d9e3e8b 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 c333bb5042d..45010d5e2e7 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 bf0752312e4..9e8ed8a627b 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 ed3fbe0f72b..26718ae2eaa 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 4bf6b289e7b..777084d8554 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 <stddef.h>
diff --git a/clang/test/SemaObjC/rdar6248119.m b/clang/test/SemaObjC/rdar6248119.m
index 046992c52fe..a4959783912 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:
// <rdar://problem/6248119> @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 b24fcb0185e..24f74c93a02 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 16d44cbb551..186e19fead8 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 fb75369a9a1..17d1872cc7e 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 40a03313b69..36a9ef571d5 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 9027a947a03..a14ad909dde 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 e0b51e8b51c..ec47ee2a8e9 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 3e289860c06..fd9399499ec 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 c25164e1597..81b8f8fa1d6 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 7d3f7c70bb5..0c17bb9392e 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 0e155f4840f..92a9d7165f1 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 d7544151872..df954db2dbb 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 6f2dbf915ac..bda0a54bb63 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 6070278bb13..f80d1ffb915 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 fe7ccd7632c..4959df31990 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 <stdarg.h>
diff --git a/clang/test/SemaObjC/writable-property-in-superclass.m b/clang/test/SemaObjC/writable-property-in-superclass.m
index bbd1f16cffc..99be5413d7a 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 d8f840e871e..12a3be3022b 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 71771b4b137..537e6b42797 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 274f873fd48..09556e396cd 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 67bab00cf97..12993a910e5 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 a25cc68888d..244c3f7d019 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
// <rdar://problem/9142559>: 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 684f633f71c..35739a89362 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 6c1408bf21f..b34c9a24ed5 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 b03d4d89e92..063ce327591 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 235aaac8d09..41bb4ff37a0 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<class T>
diff --git a/clang/test/SemaObjCXX/debugger-support.mm b/clang/test/SemaObjCXX/debugger-support.mm
index 1fb18b9c341..e8e382a1b3b 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 fa65dbea9ec..4035d00b8a4 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 b0227099c1e..d0d7922252e 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 8cf615ec326..ecee7be629c 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 e70a001b704..8ea4dabe16d 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 8d3d6251734..7c8321538d6 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 2a3ae323128..9fad82feaeb 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 fc99c15fd37..d99e6178028 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 3f9c7eb1a50..c8c9ca9cbbf 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 584571de963..25b57a9a5c6 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 205b443ffca..c5521c14353 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
// <rdar://problem/9388207>
@interface A
diff --git a/clang/test/SemaObjCXX/null_objc_pointer.mm b/clang/test/SemaObjCXX/null_objc_pointer.mm
index 0da9e50f5a1..e0232bf3c87 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 2b29b043923..73a921e8c89 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 5488ea56315..ffb8680cc03 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 d0f8404b602..4becaaf058e 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 059793cf5ce..2b267ad96ee 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 3a522005abe..f63e17d98ef 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 fcabaded7c4..4d7c049bbfe 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 1302128ac0f..12608dea161 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 2e6984872d7..c36b63bd641 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 e2827028de5..494ee253e25 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 d6da1c0cf40..e1d556e9921 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 79dc82db190..802ad9b785a 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 b3ecfecb5db..a156921254b 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 dd91aa592ab..567629c10d5 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 e761816db4b..ee5ae2002a3 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 9525bfcc4f4..fc523e392ea 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<unsigned M, unsigned N>
// struct Ackermann {
diff --git a/clang/test/SemaTemplate/alias-church-numerals.cpp b/clang/test/SemaTemplate/alias-church-numerals.cpp
index 69d77163ab6..a1613230ac0 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<template<template<typename> class, typename> class T, template<typename> class V> struct PartialApply {
template<typename W> using R = T<V, W>;
diff --git a/clang/test/SemaTemplate/alias-template-template-param.cpp b/clang/test/SemaTemplate/alias-template-template-param.cpp
index c22fccb6788..0b17d10d0cb 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<template<typename> class D> using C = D<int>;
diff --git a/clang/test/SemaTemplate/array-to-pointer-decay.cpp b/clang/test/SemaTemplate/array-to-pointer-decay.cpp
index 072c0e52edc..26d277d7dc0 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 e9fdc9de3d2..19b607f738a 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<typename T> T f(T* value) {
diff --git a/clang/test/SemaTemplate/default-arguments-cxx0x.cpp b/clang/test/SemaTemplate/default-arguments-cxx0x.cpp
index 77143136c3d..4c815f65587 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<typename T = int>
diff --git a/clang/test/SemaTemplate/dependent-base-member-init.cpp b/clang/test/SemaTemplate/dependent-base-member-init.cpp
index 1d4fed3e1d2..a278e79f912 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<class T> struct X {};
diff --git a/clang/test/SemaTemplate/dependent-expr.cpp b/clang/test/SemaTemplate/dependent-expr.cpp
index a1ddd249f7f..d75b0f3e302 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 <typename Iterator>
diff --git a/clang/test/SemaTemplate/enum-argument.cpp b/clang/test/SemaTemplate/enum-argument.cpp
index 7d237570678..7ff41961399 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 <Enum v> struct C {
diff --git a/clang/test/SemaTemplate/example-typelist.cpp b/clang/test/SemaTemplate/example-typelist.cpp
index 082aeb83fbd..9ce06e665cf 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 b8229d3f641..41d1cfe138a 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 bbadb6375b5..45136f6f60a 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 <typename T>
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 6b76d72e326..9658fc1465c 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 49b1b63f515..7cdeda6fb9d 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<int i> struct x {
static const int j = i;
x<j>* y;
diff --git a/clang/test/SemaTemplate/instantiate-deeply.cpp b/clang/test/SemaTemplate/instantiate-deeply.cpp
index c5f65945afc..ba38b2b2351 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<typename a> struct A {
template <typename b> struct B {
template <typename c> struct C {
diff --git a/clang/test/SemaTemplate/instantiate-dependent-nested-name.cpp b/clang/test/SemaTemplate/instantiate-dependent-nested-name.cpp
index eb1d3fba10e..06a1ed4119d 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<typename T> struct X { static const T A = 1; };
template<typename T, bool = X<T>::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 e5e10a85cf2..5db9b56c21a 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 <class T> struct Base {
diff --git a/clang/test/SemaTemplate/instantiate-enum-2.cpp b/clang/test/SemaTemplate/instantiate-enum-2.cpp
index aa3b590cada..9a90a9cd6ce 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<int IntBits> struct X {
enum {
diff --git a/clang/test/SemaTemplate/instantiate-friend-class.cpp b/clang/test/SemaTemplate/instantiate-friend-class.cpp
index c87b8d0bf9b..32aa3014b9c 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 T> class X
diff --git a/clang/test/SemaTemplate/instantiate-local-class.cpp b/clang/test/SemaTemplate/instantiate-local-class.cpp
index 20b62c1e537..c151fbb9a5b 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<typename T>
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 027c1e8bb76..04975e30448 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<typename T>
diff --git a/clang/test/SemaTemplate/instantiate-overloaded-arrow.cpp b/clang/test/SemaTemplate/instantiate-overloaded-arrow.cpp
index ee36427db87..b21c7a34ad4 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 00d63d0c2fe..bf66fdc17c6 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<typename T> void f(T n) {
diff --git a/clang/test/SemaTemplate/instantiation-default-3.cpp b/clang/test/SemaTemplate/instantiation-default-3.cpp
index dae6b18f32c..76189ea90bf 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<typename T> struct A { };
diff --git a/clang/test/SemaTemplate/issue150.cpp b/clang/test/SemaTemplate/issue150.cpp
index af3b93c907c..a04be35a29e 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 2710caf2212..4fcfbd19640 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 40f56b34dae..6791048874f 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<typename T> struct A {
A() : j(10), i(10) { }
diff --git a/clang/test/SemaTemplate/nested-linkage.cpp b/clang/test/SemaTemplate/nested-linkage.cpp
index 6c0791c2efc..59746ea9c10 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<class C> C x(); } }
diff --git a/clang/test/SemaTemplate/operator-function-id-template.cpp b/clang/test/SemaTemplate/operator-function-id-template.cpp
index 9a0884e8136..96dfe26cc59 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<typename T>
struct A {
diff --git a/clang/test/SemaTemplate/overload-uneval.cpp b/clang/test/SemaTemplate/overload-uneval.cpp
index 8d8a2f42cf2..c952ef8ec7c 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 f04dc5ccae4..fe0b494b9a5 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 b7b96df69ba..4b99716d582 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<typename T>
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 47102944525..63ce8f434da 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 96554e9dcf4..78cedd0c98c 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<typename T>
struct Base {
diff --git a/clang/test/SemaTemplate/unresolved-construct.cpp b/clang/test/SemaTemplate/unresolved-construct.cpp
index bb9ed8e4e08..ef010fbdd17 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:
OpenPOWER on IntegriCloud