From c6e68daac0fa6e77a89f3ca72f266a528503dd1c Mon Sep 17 00:00:00 2001 From: Andy Gibbs Date: Fri, 19 Oct 2012 12:44:48 +0000 Subject: [PATCH] Prior to adding the new "expected-no-diagnostics" directive to VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. llvm-svn: 166280 --- clang/test/ASTMerge/exprs.c | 1 + clang/test/Analysis/CFContainers-invalid.c | 1 + clang/test/Analysis/CFRetainRelease_NSAssertionHandler.m | 1 + clang/test/Analysis/MissingDealloc.m | 1 + clang/test/Analysis/NSPanel.m | 1 + clang/test/Analysis/NoReturn.m | 1 + clang/test/Analysis/OSAtomic_mac.cpp | 1 + clang/test/Analysis/ObjCProperties.m | 1 + clang/test/Analysis/PR9741.cpp | 1 + clang/test/Analysis/casts.c | 1 + clang/test/Analysis/casts.m | 1 + clang/test/Analysis/cfref_PR2519.c | 1 + clang/test/Analysis/cfref_rdar6080742.c | 1 + clang/test/Analysis/complex-init-list.cpp | 1 + clang/test/Analysis/concrete-address.c | 1 + clang/test/Analysis/cstring-syntax-cxx.cpp | 1 + clang/test/Analysis/cxx-method-names.cpp | 1 + clang/test/Analysis/cxx11-crashes.cpp | 1 + clang/test/Analysis/dead-stores.m | 1 + clang/test/Analysis/delegates.m | 1 + clang/test/Analysis/engine/replay-without-inlining.c | 1 + clang/test/Analysis/idempotent-operations.m | 1 + clang/test/Analysis/inline2.c | 1 + clang/test/Analysis/inline3.c | 1 + clang/test/Analysis/inline4.c | 1 + clang/test/Analysis/inlining/test_objc_inlining_option.m | 1 + clang/test/Analysis/lvalue.cpp | 1 + clang/test/Analysis/malloc-overflow.cpp | 1 + clang/test/Analysis/method-call-intra-p.cpp | 1 + clang/test/Analysis/misc-ps-64.m | 1 + clang/test/Analysis/misc-ps-arm.m | 1 + clang/test/Analysis/misc-ps-eager-assume.m | 1 + clang/test/Analysis/misc-ps-region-store-i386.m | 1 + clang/test/Analysis/misc-ps-region-store-x86_64.m | 1 + clang/test/Analysis/misc-ps-region-store.mm | 1 + clang/test/Analysis/no-exit-cfg.c | 1 + clang/test/Analysis/null-deref-ps-region.c | 1 + clang/test/Analysis/objc-bool.m | 1 + clang/test/Analysis/pr_4164.c | 1 + clang/test/Analysis/rdar-6442306-1.m | 1 + clang/test/Analysis/rdar-6562655.m | 1 + .../Analysis/rdar-6600344-nil-receiver-undefined-struct-ret.m | 1 + clang/test/Analysis/redefined_system.c | 1 + clang/test/Analysis/region-1.m | 1 + clang/test/Analysis/region-store.c | 1 + clang/test/Analysis/security-syntax-checks-no-emit.c | 1 + clang/test/Analysis/static_local.m | 1 + clang/test/Analysis/svalbuilder-logic.c | 1 + clang/test/Analysis/taint-tester.cpp | 1 + clang/test/Analysis/taint-tester.m | 1 + clang/test/Analysis/uninit-vals.m | 1 + clang/test/Analysis/unions-region.m | 1 + clang/test/Analysis/unions.cpp | 1 + .../CXX/basic/basic.lookup/basic.lookup.argdep/p2-template-id.cpp | 1 + clang/test/CXX/basic/basic.lookup/basic.lookup.classref/p3.cpp | 1 + .../CXX/basic/basic.lookup/basic.lookup.classref/p4-cxx11.cpp | 1 + .../basic/basic.lookup/basic.lookup.qual/namespace.qual/p3.cpp | 1 + .../basic/basic.lookup/basic.lookup.qual/namespace.qual/p4.cpp | 1 + clang/test/CXX/basic/basic.lookup/basic.lookup.udir/p1.cpp | 1 + clang/test/CXX/basic/basic.lookup/basic.lookup.unqual/p12.cpp | 1 + clang/test/CXX/basic/basic.lookup/basic.lookup.unqual/p13.cpp | 1 + clang/test/CXX/basic/basic.lookup/basic.lookup.unqual/p14.cpp | 1 + clang/test/CXX/basic/basic.lookup/basic.lookup.unqual/p3.cpp | 1 + clang/test/CXX/basic/basic.scope/basic.scope.pdecl/p9.cpp | 1 + clang/test/CXX/basic/basic.start/basic.start.main/p2a.cpp | 1 + clang/test/CXX/basic/basic.start/basic.start.main/p2b.cpp | 1 + clang/test/CXX/basic/basic.start/basic.start.main/p2c.cpp | 1 + clang/test/CXX/basic/basic.start/basic.start.main/p2g.cpp | 1 + clang/test/CXX/basic/basic.stc/basic.stc.dynamic/p2-nodef.cpp | 1 + .../CXX/basic/basic.stc/basic.stc.dynamic/p2-noexceptions.cpp | 1 + clang/test/CXX/class.access/class.protected/p1-cxx11.cpp | 1 + clang/test/CXX/class.derived/p2.cpp | 1 + clang/test/CXX/class/class.friend/p1-ambiguous.cpp | 1 + clang/test/CXX/class/class.friend/p1-cxx11.cpp | 1 + clang/test/CXX/class/class.nest/p3.cpp | 1 + clang/test/CXX/class/p1-0x.cpp | 1 + clang/test/CXX/class/p6-0x.cpp | 1 + clang/test/CXX/conv/conv.prom/p2.cpp | 1 + clang/test/CXX/conv/conv.prom/p4.cpp | 1 + clang/test/CXX/conv/conv.ptr/p2.cpp | 1 + clang/test/CXX/conv/conv.qual/pr6089.cpp | 1 + clang/test/CXX/dcl.dcl/basic.namespace/namespace.def/p2.cpp | 1 + clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p10.cpp | 1 + clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p13.cpp | 1 + clang/test/CXX/dcl.dcl/basic.namespace/namespace.udir/p6.cpp | 1 + clang/test/CXX/dcl.decl/dcl.init/dcl.init.ref/basic.cpp | 1 + clang/test/CXX/dcl.decl/dcl.init/dcl.init.ref/p1.cpp | 1 + clang/test/CXX/dcl.decl/dcl.init/dcl.init.string/p1.cpp | 1 + clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct.default/p2.cpp | 1 + clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct/p14.cpp | 1 + clang/test/CXX/dcl.decl/dcl.meaning/dcl.ref/p6-0x.cpp | 1 + clang/test/CXX/dcl.decl/dcl.name/p1.cpp | 1 + clang/test/CXX/dcl.decl/p4-0x.cpp | 1 + clang/test/CXX/except/except.spec/canonical.cpp | 1 + clang/test/CXX/except/except.spec/p11.cpp | 1 + clang/test/CXX/expr/expr.cast/p4-0x.cpp | 1 + clang/test/CXX/expr/expr.const/p3-0x-nowarn.cpp | 1 + clang/test/CXX/expr/expr.post/expr.const.cast/p1-0x.cpp | 1 + clang/test/CXX/expr/expr.post/expr.ref/p3.cpp | 1 + clang/test/CXX/expr/expr.post/expr.static.cast/p3-0x.cpp | 1 + clang/test/CXX/expr/expr.post/expr.static.cast/p9-0x.cpp | 1 + clang/test/CXX/expr/expr.post/expr.type.conv/p1-0x.cpp | 1 + clang/test/CXX/expr/expr.prim/expr.prim.lambda/p15.cpp | 1 + clang/test/CXX/expr/expr.prim/expr.prim.lambda/p18.cpp | 1 + clang/test/CXX/expr/expr.prim/expr.prim.lambda/p20.cpp | 1 + clang/test/CXX/expr/expr.prim/expr.prim.lambda/p21.cpp | 1 + clang/test/CXX/expr/expr.unary/expr.unary.noexcept/sema.cpp | 1 + clang/test/CXX/expr/expr.unary/expr.unary.op/p3.cpp | 1 + clang/test/CXX/expr/p8.cpp | 1 + clang/test/CXX/expr/p9.cpp | 1 + clang/test/CXX/lex/lex.literal/lex.ccon/p1.cpp | 1 + clang/test/CXX/lex/lex.trigraph/p3.cpp | 1 + clang/test/CXX/over/over.built/p23.cpp | 1 + clang/test/CXX/over/over.built/p25.cpp | 1 + .../CXX/over/over.match/over.match.best/over.ics.rank/p3-0x.cpp | 1 + clang/test/CXX/over/over.match/over.match.best/p1.cpp | 1 + .../CXX/over/over.match/over.match.funcs/over.match.oper/p3.cpp | 1 + clang/test/CXX/over/over.match/over.match.funcs/p4-0x.cpp | 1 + clang/test/CXX/over/over.oper/over.literal/p7.cpp | 1 + clang/test/CXX/special/class.conv/class.conv.ctor/p1.cpp | 1 + clang/test/CXX/special/class.copy/p15-0x.cpp | 1 + clang/test/CXX/special/class.copy/p8-cxx11.cpp | 1 + clang/test/CXX/special/class.ctor/p1.cpp | 1 + clang/test/CXX/special/class.dtor/p2.cpp | 1 + clang/test/CXX/stmt.stmt/stmt.select/stmt.switch/p2-0x.cpp | 1 + clang/test/CXX/temp/temp.arg/temp.arg.type/p2-cxx0x.cpp | 1 + clang/test/CXX/temp/temp.decls/temp.alias/p1.cpp | 1 + clang/test/CXX/temp/temp.decls/temp.class.spec/p9.cpp | 1 + .../CXX/temp/temp.decls/temp.class.spec/temp.class.order/p2.cpp | 1 + .../temp/temp.decls/temp.class.spec/temp.class.spec.mfunc/p1.cpp | 1 + .../CXX/temp/temp.decls/temp.class/temp.mem.func/p1-retmem.cpp | 1 + .../test/CXX/temp/temp.decls/temp.class/temp.mem.func/pr5056.cpp | 1 + clang/test/CXX/temp/temp.decls/temp.fct/temp.func.order/p3-0x.cpp | 1 + clang/test/CXX/temp/temp.decls/temp.fct/temp.func.order/p3.cpp | 1 + clang/test/CXX/temp/temp.decls/temp.fct/temp.func.order/p5.cpp | 1 + clang/test/CXX/temp/temp.decls/temp.fct/temp.over.link/p4.cpp | 1 + clang/test/CXX/temp/temp.decls/temp.friend/p5.cpp | 1 + clang/test/CXX/temp/temp.decls/temp.mem/p1.cpp | 1 + clang/test/CXX/temp/temp.decls/temp.variadic/deduction.cpp | 1 + clang/test/CXX/temp/temp.decls/temp.variadic/example-bind.cpp | 1 + clang/test/CXX/temp/temp.decls/temp.variadic/example-function.cpp | 1 + clang/test/CXX/temp/temp.decls/temp.variadic/example-tuple.cpp | 1 + .../CXX/temp/temp.decls/temp.variadic/injected-class-name.cpp | 1 + clang/test/CXX/temp/temp.decls/temp.variadic/partial-ordering.cpp | 1 + clang/test/CXX/temp/temp.fct.spec/temp.arg.explicit/p3-0x.cpp | 1 + clang/test/CXX/temp/temp.fct.spec/temp.arg.explicit/p9-0x.cpp | 1 + clang/test/CXX/temp/temp.fct.spec/temp.deduct/cwg1170.cpp | 1 + clang/test/CXX/temp/temp.fct.spec/temp.deduct/sfinae-1.cpp | 1 + .../CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.call/p2.cpp | 1 + .../CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.call/p4.cpp | 1 + .../CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.conv/p2.cpp | 1 + .../CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.conv/p3.cpp | 1 + .../temp/temp.fct.spec/temp.deduct/temp.deduct.partial/p12.cpp | 1 + .../temp/temp.fct.spec/temp.deduct/temp.deduct.partial/p9-0x.cpp | 1 + .../temp/temp.fct.spec/temp.deduct/temp.deduct.type/p10-0x.cpp | 1 + .../CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p2-0x.cpp | 1 + .../CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p21.cpp | 1 + .../CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p22.cpp | 1 + .../CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p5-0x.cpp | 1 + .../CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p8-0x.cpp | 1 + clang/test/CXX/temp/temp.names/p2.cpp | 1 + clang/test/CXX/temp/temp.names/p4.cpp | 1 + clang/test/CXX/temp/temp.param/p10-0x.cpp | 1 + clang/test/CXX/temp/temp.param/p10.cpp | 1 + clang/test/CXX/temp/temp.param/p13.cpp | 1 + clang/test/CXX/temp/temp.param/p2.cpp | 1 + clang/test/CXX/temp/temp.param/p5.cpp | 1 + clang/test/CXX/temp/temp.param/p8.cpp | 1 + clang/test/CXX/temp/temp.res/temp.dep/p3.cpp | 1 + .../test/CXX/temp/temp.res/temp.dep/temp.dep.constexpr/p2-0x.cpp | 1 + clang/test/CXX/temp/temp.res/temp.local/p1.cpp | 1 + clang/test/CXX/temp/temp.res/temp.local/p7.cpp | 1 + clang/test/CXX/temp/temp.res/temp.local/p8.cpp | 1 + clang/test/CXX/temp/temp.spec/temp.expl.spec/p1.cpp | 1 + clang/test/CXX/temp/temp.spec/temp.expl.spec/p11.cpp | 1 + clang/test/CXX/temp/temp.spec/temp.expl.spec/p9.cpp | 1 + clang/test/CXX/temp/temp.spec/temp.explicit/p11.cpp | 1 + clang/test/CXX/temp/temp.spec/temp.explicit/p3-0x.cpp | 1 + clang/test/CXX/temp/temp.spec/temp.explicit/p6.cpp | 1 + clang/test/CodeGen/2009-06-01-addrofknr.c | 1 + clang/test/CodeGen/arm-aapcs-zerolength-bitfield.c | 1 + clang/test/CodeGen/arm-apcs-zerolength-bitfield.c | 1 + clang/test/CodeGen/func-ptr-cast-decl.c | 1 + clang/test/CodeGenCXX/conversion-operator-base.cpp | 1 + clang/test/CodeGenCXX/copy-assign-synthesis-3.cpp | 1 + clang/test/CodeGenCXX/dependent-type-member-pointer.cpp | 1 + clang/test/CodeGenCXX/enum.cpp | 1 + clang/test/CodeGenCXX/incomplete-types.cpp | 1 + clang/test/CodeGenCXX/instantiate-init-list.cpp | 1 + clang/test/CodeGenCXX/member-call-parens.cpp | 1 + clang/test/CodeGenCXX/member-init-struct.cpp | 1 + clang/test/CodeGenCXX/member-init-union.cpp | 1 + clang/test/CodeGenCXX/new-operator-phi.cpp | 1 + clang/test/CodeGenCXX/reference-bind-default-argument.cpp | 1 + clang/test/CodeGenCXX/reference-init.cpp | 1 + clang/test/CodeGenCXX/static-assert.cpp | 1 + clang/test/CodeGenCXX/static-init-2.cpp | 1 + clang/test/CodeGenCXX/throw-expression-dtor.cpp | 1 + clang/test/CodeGenCXX/throw-expressions.cpp | 1 + clang/test/CodeGenCXX/unary-type-trait.cpp | 1 + clang/test/Driver/no-objc-arr.m | 1 + clang/test/Driver/x86_64-nacl-types.cpp | 1 + clang/test/Frontend/iframework.c | 1 + clang/test/Frontend/macros.c | 1 + clang/test/Frontend/unknown-pragmas.c | 1 + clang/test/Frontend/warning-mapping-1.c | 1 + clang/test/Frontend/warning-mapping-4.c | 1 + clang/test/Headers/c89.c | 1 + clang/test/Headers/int64-type.c | 1 + clang/test/Headers/typedef_guards.c | 1 + clang/test/Headers/wchar_limits.cpp | 1 + clang/test/Headers/wmmintrin.c | 1 + clang/test/Lexer/clang-keywords.cpp | 1 + clang/test/Lexer/digraph.c | 1 + clang/test/Lexer/gnu_keywords.c | 1 + clang/test/Lexer/long-long.cpp | 8 +++++--- clang/test/Lexer/msdos-cpm-eof.c | 1 + clang/test/Lexer/newline-eof-c++11.cpp | 1 + clang/test/Lexer/numeric-literal-trash.c | 2 +- clang/test/Lexer/pragma-mark.c | 1 + clang/test/Lexer/rdr-6096838.c | 1 + clang/test/Misc/predefines.c | 1 + clang/test/Modules/Inputs/lookup_right.hpp | 1 + clang/test/Modules/compiler_builtins.m | 1 + clang/test/Modules/header-import.m | 1 + clang/test/Modules/inferred-submodules.m | 1 + clang/test/Modules/on-demand-macros.m | 1 + clang/test/Modules/redeclarations.m | 1 + clang/test/Modules/submodules.m | 1 + clang/test/Modules/templates.mm | 1 + clang/test/PCH/__va_list_tag.c | 2 ++ clang/test/PCH/asm.c | 1 + clang/test/PCH/builtins.c | 2 ++ clang/test/PCH/chain-categories.m | 2 ++ clang/test/PCH/chain-class-extension.m | 2 ++ clang/test/PCH/chain-cxx.cpp | 2 ++ clang/test/PCH/chain-decls.c | 2 ++ clang/test/PCH/chain-macro.c | 1 + clang/test/PCH/chain-remap-types.m | 1 + clang/test/PCH/cmdline-include.c | 1 + clang/test/PCH/cxx-exprs.cpp | 2 ++ clang/test/PCH/cxx-friends.cpp | 2 ++ clang/test/PCH/cxx-functions.cpp | 2 ++ clang/test/PCH/cxx-implicit-moves.cpp | 1 + clang/test/PCH/cxx-method.cpp | 1 + clang/test/PCH/cxx-ms-function-specialization-class-scope.cpp | 1 + clang/test/PCH/cxx-namespaces.cpp | 2 ++ clang/test/PCH/cxx-templates.cpp | 2 ++ clang/test/PCH/cxx-traits.cpp | 2 ++ clang/test/PCH/cxx-typeid.cpp | 2 ++ clang/test/PCH/cxx-variadic-templates.cpp | 2 ++ clang/test/PCH/cxx11-exception-spec.cpp | 1 + clang/test/PCH/cxx_exprs.cpp | 2 ++ clang/test/PCH/enum.c | 2 ++ clang/test/PCH/exprs.c | 6 +++++- clang/test/PCH/objc_container.m | 2 ++ clang/test/PCH/objc_import.m | 2 ++ clang/test/PCH/objc_literals.m | 2 ++ clang/test/PCH/objc_literals.mm | 2 ++ clang/test/PCH/objc_methods.m | 2 ++ clang/test/PCH/objc_property.m | 2 ++ clang/test/PCH/pending-ids.m | 2 ++ clang/test/PCH/pragma-diag-section.cpp | 2 ++ clang/test/PCH/pragma-diag.c | 2 ++ clang/test/PCH/rdar8852495.c | 2 ++ clang/test/PCH/reinclude.cpp | 2 ++ clang/test/PCH/single-token-macro.c | 2 ++ clang/test/Parser/block-block-storageclass.c | 1 + clang/test/Parser/block-pointer-decl.c | 1 + clang/test/Parser/check-objc2-syntax-1.m | 1 + clang/test/Parser/compound_literal.c | 1 + clang/test/Parser/cxx-attributes.cpp | 1 + clang/test/Parser/cxx-extern-c-array.cpp | 1 + clang/test/Parser/cxx0x-override-control-keywords.cpp | 1 + clang/test/Parser/cxx11-brace-initializers.cpp | 1 + clang/test/Parser/encode.m | 1 + clang/test/Parser/enhanced-proto-1.m | 1 + clang/test/Parser/if-scope-c90.c | 1 + clang/test/Parser/knr_parameter_attributes.c | 1 + clang/test/Parser/namelookup-bug-1.c | 1 + clang/test/Parser/namelookup-bug-2.c | 1 + clang/test/Parser/opencl-kernel.cl | 1 + clang/test/Parser/parmvardecl_conversion.c | 1 + clang/test/Parser/pragma-options.cpp | 1 + clang/test/Parser/recursion-limits.cpp | 1 + clang/test/Parser/selector-1.m | 1 + clang/test/Parser/top-level-semi-cxx0x.cpp | 1 + clang/test/Parser/types.c | 1 + clang/test/Preprocessor/comment_save_if.c | 1 + clang/test/Preprocessor/cxx_true.cpp | 1 + clang/test/Preprocessor/expr_define_expansion.c | 1 + clang/test/Preprocessor/expr_multichar.c | 1 + clang/test/Preprocessor/macro_paste_identifier_error.c | 1 + clang/test/Preprocessor/objc-pp.m | 1 + clang/test/Preprocessor/optimize.c | 3 +++ clang/test/Preprocessor/pragma_sysheader.c | 3 ++- clang/test/Preprocessor/user_defined_system_framework.c | 1 + clang/test/Sema/PR2727.c | 1 + clang/test/Sema/PR2728.c | 1 + clang/test/Sema/PR2923.c | 1 + clang/test/Sema/address-constant.c | 1 + clang/test/Sema/align-arm-apcs.c | 1 + clang/test/Sema/align-x86-64.c | 1 + clang/test/Sema/align-x86.c | 1 + clang/test/Sema/arg-scope-c99.c | 1 + clang/test/Sema/arg-scope.c | 1 + clang/test/Sema/arm-layout.c | 1 + clang/test/Sema/assign-null.c | 1 + clang/test/Sema/bitfield-layout.c | 1 + clang/test/Sema/bitfield-promote.c | 1 + clang/test/Sema/block-storageclass.c | 1 + clang/test/Sema/builtin_objc_msgSend.c | 1 + clang/test/Sema/builtins-decl.c | 1 + clang/test/Sema/check-increment.c | 1 + clang/test/Sema/complex-promotion.c | 1 + clang/test/Sema/const-eval-64.c | 1 + clang/test/Sema/const-ptr-int-ptr-cast.c | 1 + clang/test/Sema/constant-builtins.c | 1 + clang/test/Sema/darwin-align-cast.c | 1 + clang/test/Sema/enum-packed.c | 1 + clang/test/Sema/expr-comma-c99.c | 1 + clang/test/Sema/expr-comma.c | 1 + clang/test/Sema/format-string-percentm.c | 1 + clang/test/Sema/implicit-builtin-freestanding.c | 1 + clang/test/Sema/init-struct-qualified.c | 1 + clang/test/Sema/init-vector.c | 1 + clang/test/Sema/int-arith-convert.c | 1 + clang/test/Sema/knr-variadic-def.c | 1 + clang/test/Sema/many-logical-ops.c | 1 + clang/test/Sema/member-reference.c | 1 + clang/test/Sema/mms-bitfields.c | 1 + clang/test/Sema/ms_wide_predefined_expr.cpp | 1 + clang/test/Sema/overloaded-func-transparent-union.c | 1 + clang/test/Sema/pragma-align-mac68k.c | 1 + clang/test/Sema/pragma-align-packed.c | 1 + clang/test/Sema/pragma-pack-2.c | 1 + clang/test/Sema/pragma-pack-3.c | 1 + clang/test/Sema/pragma-pack-4.c | 1 + clang/test/Sema/pragma-pack-5.c | 1 + clang/test/Sema/pragma-pack-6.c | 1 + clang/test/Sema/return-silent.c | 1 + clang/test/Sema/short-enums.c | 1 + clang/test/Sema/struct-cast.c | 1 + clang/test/Sema/struct-packed-align.c | 1 + clang/test/Sema/surpress-deprecated.c | 1 + clang/test/Sema/transparent-union-pointer.c | 1 + clang/test/Sema/typedef-prototype.c | 1 + clang/test/Sema/unnamed-bitfield-init.c | 1 + clang/test/Sema/va_arg_x86_64.c | 1 + clang/test/Sema/variadic-block.c | 1 + clang/test/Sema/vfprintf-valid-redecl.c | 1 + clang/test/Sema/warn-gnu-designators.c | 1 + clang/test/Sema/weak-import-on-enum.c | 1 + clang/test/SemaCXX/2008-01-11-BadWarning.cpp | 1 + clang/test/SemaCXX/MicrosoftCompatibilityNoExceptions.cpp | 1 + clang/test/SemaCXX/PR10447.cpp | 1 + clang/test/SemaCXX/PR5086-ambig-resolution-enum.cpp | 1 + clang/test/SemaCXX/PR6562.cpp | 1 + clang/test/SemaCXX/PR9884.cpp | 1 + clang/test/SemaCXX/PR9902.cpp | 1 + clang/test/SemaCXX/PR9908.cpp | 1 + clang/test/SemaCXX/__try.cpp | 1 + clang/test/SemaCXX/anonymous-union-cxx11.cpp | 1 + clang/test/SemaCXX/blocks-1.cpp | 1 + clang/test/SemaCXX/blocks.cpp | 1 + clang/test/SemaCXX/borland-extensions.cpp | 1 + clang/test/SemaCXX/builtin-exception-spec.cpp | 1 + clang/test/SemaCXX/builtin-ptrtomember-overload.cpp | 1 + clang/test/SemaCXX/builtin_objc_msgSend.cpp | 1 + clang/test/SemaCXX/cast-explicit-ctor.cpp | 1 + clang/test/SemaCXX/class-layout.cpp | 1 + clang/test/SemaCXX/comma.cpp | 1 + clang/test/SemaCXX/complex-init-list.cpp | 1 + clang/test/SemaCXX/constexpr-turing.cpp | 1 + clang/test/SemaCXX/decltype-98.cpp | 1 + clang/test/SemaCXX/decltype-pr4444.cpp | 1 + clang/test/SemaCXX/decltype-pr4448.cpp | 1 + clang/test/SemaCXX/decltype-this.cpp | 1 + clang/test/SemaCXX/decltype.cpp | 1 + clang/test/SemaCXX/default-argument-temporaries.cpp | 1 + clang/test/SemaCXX/do-while-scope.cpp | 1 + clang/test/SemaCXX/empty-class-layout.cpp | 1 + clang/test/SemaCXX/exception-spec-no-exceptions.cpp | 1 + clang/test/SemaCXX/friend-out-of-line.cpp | 1 + clang/test/SemaCXX/gnu-case-ranges.cpp | 1 + clang/test/SemaCXX/goto2.cpp | 1 + clang/test/SemaCXX/indirect-goto.cpp | 1 + clang/test/SemaCXX/issue547.cpp | 1 + clang/test/SemaCXX/local-classes.cpp | 1 + clang/test/SemaCXX/lookup-member.cpp | 1 + clang/test/SemaCXX/member-expr-anonymous-union.cpp | 1 + clang/test/SemaCXX/member-expr-static.cpp | 1 + clang/test/SemaCXX/member-pointer-size.cpp | 1 + clang/test/SemaCXX/ms-exception-spec.cpp | 1 + clang/test/SemaCXX/new-delete-predefined-decl-2.cpp | 1 + clang/test/SemaCXX/new-delete-predefined-decl.cpp | 1 + clang/test/SemaCXX/no-warn-composite-pointer-type.cpp | 1 + clang/test/SemaCXX/nullptr-98.cpp | 1 + clang/test/SemaCXX/overload-value-dep-arg.cpp | 1 + clang/test/SemaCXX/overloaded-builtin-operators-0x.cpp | 1 + clang/test/SemaCXX/pragma-pack.cpp | 1 + clang/test/SemaCXX/pragma-unused.cpp | 1 + clang/test/SemaCXX/prefetch-enum.cpp | 1 + clang/test/SemaCXX/primary-base.cpp | 1 + clang/test/SemaCXX/ptrtomember-overload-resolution.cpp | 1 + clang/test/SemaCXX/qualified-member-enum.cpp | 1 + clang/test/SemaCXX/short-wchar-sign.cpp | 1 + clang/test/SemaCXX/static-initializers.cpp | 1 + clang/test/SemaCXX/tag-ambig.cpp | 1 + clang/test/SemaCXX/trivial-constructor.cpp | 1 + clang/test/SemaCXX/trivial-destructor.cpp | 1 + clang/test/SemaCXX/unused-functions.cpp | 1 + clang/test/SemaCXX/using-decl-pr4441.cpp | 1 + clang/test/SemaCXX/using-decl-pr4450.cpp | 1 + clang/test/SemaCXX/value-dependent-exprs.cpp | 1 + clang/test/SemaCXX/vararg-default-arg.cpp | 1 + clang/test/SemaCXX/warn-new-overaligned-2.cpp | 1 + clang/test/SemaCXX/warn-self-comparisons.cpp | 1 + clang/test/SemaCXX/zero-length-arrays.cpp | 1 + clang/test/SemaObjC/ClassPropertyNotObject.m | 1 + clang/test/SemaObjC/ContClassPropertyLookup.m | 1 + clang/test/SemaObjC/arc-readonly-property-ivar-1.m | 1 + clang/test/SemaObjC/arc-readonly-property-ivar.m | 1 + clang/test/SemaObjC/arc-setter-property-match.m | 1 + clang/test/SemaObjC/arc-unsafe_unretained.m | 1 + clang/test/SemaObjC/attr-cleanup.m | 1 + clang/test/SemaObjC/block-as-object.m | 1 + clang/test/SemaObjC/block-ivar.m | 1 + clang/test/SemaObjC/block-return.m | 1 + clang/test/SemaObjC/builtin_objc_assign_ivar.m | 1 + clang/test/SemaObjC/builtin_objc_msgSend.m | 1 + clang/test/SemaObjC/category-method-lookup-2.m | 1 + clang/test/SemaObjC/category-method-lookup.m | 1 + clang/test/SemaObjC/class-getter-using-dotsyntax.m | 1 + clang/test/SemaObjC/class-property-access.m | 1 + clang/test/SemaObjC/class-protocol.m | 1 + clang/test/SemaObjC/comptypes-2.m | 1 + clang/test/SemaObjC/comptypes-8.m | 1 + clang/test/SemaObjC/conditional-expr-5.m | 1 + clang/test/SemaObjC/conditional-expr-6.m | 1 + clang/test/SemaObjC/conditional-expr-7.m | 1 + clang/test/SemaObjC/conditional-expr-8.m | 1 + clang/test/SemaObjC/conflict-nonfragile-abi2.m | 1 + clang/test/SemaObjC/delay-parsing-cfunctions.m | 1 + clang/test/SemaObjC/direct-synthesized-ivar-access.m | 1 + clang/test/SemaObjC/enhanced-proto-2.m | 1 + clang/test/SemaObjC/enum-fixed-type.m | 1 + clang/test/SemaObjC/getter-setter-defined-in-category-of-parent.m | 1 + clang/test/SemaObjC/id_builtin.m | 1 + clang/test/SemaObjC/ignore-qualifier-on-qualified-id.m | 1 + clang/test/SemaObjC/ignore-weakimport-method.m | 1 + clang/test/SemaObjC/interface-layout-2.m | 1 + clang/test/SemaObjC/interface-layout.m | 1 + clang/test/SemaObjC/interface-scope-2.m | 1 + clang/test/SemaObjC/interface-scope.m | 1 + clang/test/SemaObjC/ivar-access-package.m | 1 + clang/test/SemaObjC/method-conflict-1.m | 1 + clang/test/SemaObjC/method-in-class-extension-impl.m | 1 + clang/test/SemaObjC/method-lookup-2.m | 1 + clang/test/SemaObjC/method-lookup-4.m | 1 + clang/test/SemaObjC/nested-typedef-decl.m | 1 + clang/test/SemaObjC/no-gc-weak-test.m | 1 + clang/test/SemaObjC/no-ivar-access-control.m | 1 + clang/test/SemaObjC/no-warn-qual-mismatch.m | 1 + clang/test/SemaObjC/no-warn-synth-protocol-meth.m | 1 + clang/test/SemaObjC/no-warn-unimpl-method.m | 1 + clang/test/SemaObjC/no-warning-unavail-unimp.m | 1 + clang/test/SemaObjC/nowarn-superclass-method-mismatch.m | 1 + clang/test/SemaObjC/nsobject-attribute-1.m | 1 + clang/test/SemaObjC/objc-buffered-methods.m | 1 + clang/test/SemaObjC/objc-qualified-property-lookup.m | 1 + clang/test/SemaObjC/overriding-property-in-class-extension.m | 1 + clang/test/SemaObjC/pedantic-dynamic-test.m | 1 + clang/test/SemaObjC/pragma-pack.m | 1 + clang/test/SemaObjC/property-11.m | 1 + clang/test/SemaObjC/property-13.m | 1 + clang/test/SemaObjC/property-2.m | 1 + clang/test/SemaObjC/property-6.m | 1 + clang/test/SemaObjC/property-7.m | 1 + clang/test/SemaObjC/property-8.m | 1 + clang/test/SemaObjC/property-9-impl-method.m | 1 + clang/test/SemaObjC/property-and-ivar-use.m | 1 + clang/test/SemaObjC/property-dot-receiver.m | 1 + clang/test/SemaObjC/property-method-lookup-impl.m | 1 + clang/test/SemaObjC/property-nonfragile-abi.m | 1 + clang/test/SemaObjC/property-noprotocol-warning.m | 1 + clang/test/SemaObjC/property-redundant-decl-accessor.m | 1 + clang/test/SemaObjC/property-weak.m | 1 + clang/test/SemaObjC/props-on-prots.m | 1 + clang/test/SemaObjC/protocol-expr-1.m | 1 + clang/test/SemaObjC/protocol-implementation-inherited.m | 1 + clang/test/SemaObjC/protocol-lookup-2.m | 1 + clang/test/SemaObjC/protocol-lookup.m | 1 + clang/test/SemaObjC/protocol-qualified-class-unsupported.m | 1 + clang/test/SemaObjC/rdar6248119.m | 1 + clang/test/SemaObjC/restrict-id-type.m | 1 + clang/test/SemaObjC/selector-1.m | 1 + clang/test/SemaObjC/selector-2.m | 1 + clang/test/SemaObjC/self-declared-in-block.m | 1 + clang/test/SemaObjC/self-in-function.m | 1 + clang/test/SemaObjC/setter-dotsyntax.m | 1 + clang/test/SemaObjC/super-cat-prot.m | 1 + clang/test/SemaObjC/super-property-message-expr.m | 1 + clang/test/SemaObjC/super-property-notation.m | 1 + clang/test/SemaObjC/synth-provisional-ivars-1.m | 1 + clang/test/SemaObjC/synthesize-setter-contclass.m | 1 + clang/test/SemaObjC/transparent-union.m | 1 + clang/test/SemaObjC/ucn-objc-string.m | 1 + clang/test/SemaObjC/va-method-1.m | 1 + clang/test/SemaObjC/writable-property-in-superclass.m | 1 + clang/test/SemaObjCXX/arc-bool-conversion.mm | 1 + clang/test/SemaObjCXX/arc-libstdcxx.mm | 1 + clang/test/SemaObjCXX/arc-memfunc.mm | 1 + clang/test/SemaObjCXX/arc-type-traits.mm | 1 + clang/test/SemaObjCXX/argument-dependent-lookup.mm | 1 + clang/test/SemaObjCXX/composite-objc-pointertype.mm | 1 + clang/test/SemaObjCXX/conversion-ranking.mm | 1 + clang/test/SemaObjCXX/conversion-to-objc-pointer-2.mm | 1 + clang/test/SemaObjCXX/conversion-to-objc-pointer.mm | 1 + clang/test/SemaObjCXX/debugger-support.mm | 1 + clang/test/SemaObjCXX/delay-parsing-cfunctions.mm | 1 + clang/test/SemaObjCXX/delay-parsing-cplusfuncs.mm | 1 + clang/test/SemaObjCXX/delay-parsing-func-tryblock.mm | 1 + clang/test/SemaObjCXX/expr-objcxx.mm | 1 + clang/test/SemaObjCXX/function-pointer-void-star.mm | 1 + clang/test/SemaObjCXX/instantiate-method-return.mm | 1 + clang/test/SemaObjCXX/ivar-lookup.mm | 1 + clang/test/SemaObjCXX/ivar-struct.mm | 1 + clang/test/SemaObjCXX/linkage-spec.mm | 1 + clang/test/SemaObjCXX/namespace-lookup.mm | 1 + clang/test/SemaObjCXX/null_objc_pointer.mm | 1 + clang/test/SemaObjCXX/nullptr.mm | 1 + clang/test/SemaObjCXX/overload-gc.mm | 1 + clang/test/SemaObjCXX/pointer-to-objc-pointer-conv.mm | 1 + clang/test/SemaObjCXX/property-type-mismatch.mm | 1 + clang/test/SemaObjCXX/references.mm | 1 + clang/test/SemaObjCXX/reinterpret-cast-objc-pointertype.mm | 1 + clang/test/SemaObjCXX/reserved-keyword-methods.mm | 1 + clang/test/SemaObjCXX/standard-conversion-to-bool.mm | 1 + clang/test/SemaObjCXX/static-cast.mm | 1 + clang/test/SemaObjCXX/vla.mm | 1 + clang/test/SemaOpenCL/cond.cl | 1 + clang/test/SemaOpenCL/init.cl | 1 + clang/test/SemaOpenCL/vec_compare.cl | 1 + clang/test/SemaOpenCL/vector_literals_const.cl | 1 + clang/test/SemaTemplate/ackermann.cpp | 1 + clang/test/SemaTemplate/alias-church-numerals.cpp | 1 + clang/test/SemaTemplate/alias-template-template-param.cpp | 1 + clang/test/SemaTemplate/array-to-pointer-decay.cpp | 1 + clang/test/SemaTemplate/atomics.cpp | 1 + clang/test/SemaTemplate/default-arguments-cxx0x.cpp | 1 + clang/test/SemaTemplate/dependent-base-member-init.cpp | 1 + clang/test/SemaTemplate/dependent-expr.cpp | 1 + clang/test/SemaTemplate/enum-argument.cpp | 1 + clang/test/SemaTemplate/example-typelist.cpp | 1 + clang/test/SemaTemplate/instantiate-array.cpp | 1 + clang/test/SemaTemplate/instantiate-attr.cpp | 1 + clang/test/SemaTemplate/instantiate-decl-init.cpp | 1 + clang/test/SemaTemplate/instantiate-declref-ice.cpp | 1 + clang/test/SemaTemplate/instantiate-deeply.cpp | 1 + clang/test/SemaTemplate/instantiate-dependent-nested-name.cpp | 1 + clang/test/SemaTemplate/instantiate-elab-type-specifier.cpp | 1 + clang/test/SemaTemplate/instantiate-enum-2.cpp | 1 + clang/test/SemaTemplate/instantiate-friend-class.cpp | 1 + clang/test/SemaTemplate/instantiate-local-class.cpp | 1 + .../test/SemaTemplate/instantiate-non-type-template-parameter.cpp | 1 + clang/test/SemaTemplate/instantiate-overloaded-arrow.cpp | 1 + clang/test/SemaTemplate/instantiate-sizeof.cpp | 1 + clang/test/SemaTemplate/instantiation-default-3.cpp | 1 + clang/test/SemaTemplate/issue150.cpp | 1 + clang/test/SemaTemplate/lookup-dependent-bases.cpp | 1 + clang/test/SemaTemplate/member-initializers.cpp | 1 + clang/test/SemaTemplate/nested-linkage.cpp | 1 + clang/test/SemaTemplate/operator-function-id-template.cpp | 1 + clang/test/SemaTemplate/overload-uneval.cpp | 1 + clang/test/SemaTemplate/pragma-ms_struct.cpp | 1 + clang/test/SemaTemplate/temp_class_spec_blocks.cpp | 1 + clang/test/SemaTemplate/template-class-traits.cpp | 1 + clang/test/SemaTemplate/typo-dependent-name.cpp | 1 + clang/test/SemaTemplate/unresolved-construct.cpp | 1 + 580 files changed, 619 insertions(+), 6 deletions(-) diff --git a/clang/test/ASTMerge/exprs.c b/clang/test/ASTMerge/exprs.c index 0a4e1e5..c82e683 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 939af06..3268e1e 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 5ffcaae..853bfb2 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 2980338..b465959 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 602ed07..1d77d1e 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 fafb44f..6d547f4 100644 --- a/clang/test/Analysis/NoReturn.m +++ b/clang/test/Analysis/NoReturn.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=core,alpha.core -analyzer-store=region -analyzer-constraints=range -verify %s +// expected-no-diagnostics #include diff --git a/clang/test/Analysis/OSAtomic_mac.cpp b/clang/test/Analysis/OSAtomic_mac.cpp index 8ad7b3c..f938958 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 53b919b..1712fef 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 7497d56..2807c44 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 0e158d3..1c0f357 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 0560692d..1a78940 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 03e4222..7fce226 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 e1a8805..0023d13 100644 --- a/clang/test/Analysis/cfref_rdar6080742.c +++ b/clang/test/Analysis/cfref_rdar6080742.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=core,alpha.core -analyzer-store=region -analyzer-constraints=range -verify %s +// expected-no-diagnostics // This test case was reported in . // It tests path-sensitivity with respect to '!(cfstring != 0)' (negation of inequality). diff --git a/clang/test/Analysis/complex-init-list.cpp b/clang/test/Analysis/complex-init-list.cpp index 24244cb..bbff64b 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 d460df0..819afca 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 f8975ab..bae3d0a 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 7d57c35..21be5e4 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 16bfc89..d0b9222 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 9edb60d..5a807ed 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 7fc4f2b..28e9006 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 9ec2d08..0602973 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 ef00cf9..306376d 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 2a39c66..bae7434 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 05f56fb..e7f4775 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 1dcebbe..71a379a 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 963b572..34502c4 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 0cc42f5..9a6bd59 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 79d5253..e3a0408 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 701479f..a170942 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 dcda8d7..1fbbeef 100644 --- a/clang/test/Analysis/misc-ps-64.m +++ b/clang/test/Analysis/misc-ps-64.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple x86_64-apple-darwin9 -analyze -analyzer-checker=core,alpha.core -analyzer-store=region -analyzer-constraints=range -verify -fblocks %s +// expected-no-diagnostics // - A bunch of misc. failures involving evaluating // these expressions and building CFGs. These tests are here to prevent diff --git a/clang/test/Analysis/misc-ps-arm.m b/clang/test/Analysis/misc-ps-arm.m index a909ef1..1ff0f17 100644 --- a/clang/test/Analysis/misc-ps-arm.m +++ b/clang/test/Analysis/misc-ps-arm.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple thumbv7-apple-ios0.0.0 -analyze -analyzer-checker=core -analyzer-store=region -verify -fblocks -analyzer-opt-analyze-nested-blocks -Wno-objc-root-class %s +// expected-no-diagnostics // - Handle casts of vectors to structs, and loading // a value. diff --git a/clang/test/Analysis/misc-ps-eager-assume.m b/clang/test/Analysis/misc-ps-eager-assume.m index 58d9c8e..9fbe3d0 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 0f7040a..bed6fc3 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 9ff8772..4575ad4 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 a5b0b8d..c19a90f 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 ee248e0..b3c3fbc 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 30dba25..5bb9454 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 f95736a..a2d10cc 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 972a6b2..0d2ca41 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 aad055a..0fb49c2 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 d2f5fd9..1c866bb 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 3f3c778..74d5484 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 2b99820..ae5bf26 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 98ac582..9edb35b 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 09c3f10..d620150 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 c2869ca..7759aa7 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 7092625..dcd49e1 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 bc79f85..41d4fe2 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 ded8dc9..f97eefb 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 55feb73..b5663ca 100644 --- a/clang/test/Analysis/taint-tester.m +++ b/clang/test/Analysis/taint-tester.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -analyze -analyzer-checker=alpha.security.taint,debug.TaintTest %s -verify +// expected-no-diagnostics #import diff --git a/clang/test/Analysis/uninit-vals.m b/clang/test/Analysis/uninit-vals.m index 4ba26f5..1cd5759 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 1a71684..3a9fb93 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 e7671a9..2bffe78 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 f650ad5..eda869b 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 cd7e669..ef4243e 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 7925454..a4721d6 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 dc0f8b4..1060f61 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 38eccfa..7c292d5 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 ab0dc24..91f5a54 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 878ff07..6bf74c1 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 58d7ff4..ba34571 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 0fa4f65..4ffe538 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 20a7ae0..abcc6ee 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 e64b675..c627535 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 b8dfbe7..b27d492 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 785382c..65cd202 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 81b08b9..2b082ec 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 e3209fd..45f643f 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 6cd587c..9a740df 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 4567c46..9819ea0 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 dc9b20d..c1cf047 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 7ef53d3..87e0f74 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 a9dca4f..3bb3271 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 235f295..6e3d850 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 c4c4ca7..677411f 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 be5fdff..5c32788 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 e153b4d..cf628a6 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 6549a1a..ca64cfa 100644 --- a/clang/test/CXX/conv/conv.prom/p2.cpp +++ b/clang/test/CXX/conv/conv.prom/p2.cpp @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x -triple x86_64-pc-linux-gnu -ffreestanding %s // RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x -triple x86_64-pc-linux-gnu -ffreestanding -fshort-wchar %s +// expected-no-diagnostics #include diff --git a/clang/test/CXX/conv/conv.prom/p4.cpp b/clang/test/CXX/conv/conv.prom/p4.cpp index 5f34dc4..8c86d2a 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 8808d20..b761769 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 ae75ec4..bfadc6c 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 411c16c..943e053 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 546c4a4..ae40062 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 dd44bfc9..699d80a 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 4cb91cd..2bcbe26 100644 --- a/clang/test/CXX/dcl.dcl/basic.namespace/namespace.udir/p6.cpp +++ b/clang/test/CXX/dcl.dcl/basic.namespace/namespace.udir/p6.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // typedef int pid_t; diff --git a/clang/test/CXX/dcl.decl/dcl.init/dcl.init.ref/basic.cpp b/clang/test/CXX/dcl.decl/dcl.init/dcl.init.ref/basic.cpp index 885d11b..2c9cd88 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 20c059e..76053f0 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 3631af1..878d2c6 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 0a107eb..68aabca 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 0e69521..bc249b5 100644 --- a/clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct/p14.cpp +++ b/clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct/p14.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics template struct identity; template struct tuple; diff --git a/clang/test/CXX/dcl.decl/dcl.meaning/dcl.ref/p6-0x.cpp b/clang/test/CXX/dcl.decl/dcl.meaning/dcl.ref/p6-0x.cpp index 4ce80bc..cd623df 100644 --- a/clang/test/CXX/dcl.decl/dcl.meaning/dcl.ref/p6-0x.cpp +++ b/clang/test/CXX/dcl.decl/dcl.meaning/dcl.ref/p6-0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics template struct is_same { diff --git a/clang/test/CXX/dcl.decl/dcl.name/p1.cpp b/clang/test/CXX/dcl.decl/dcl.name/p1.cpp index 9838b4f..e032a7f 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 98c33b2..35177a0 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 81ca2ae..b6d3e9c 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 0e4fad5..1f6bf21 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 96bf5f9..76ac318 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 c891374..7d12ced 100644 --- a/clang/test/CXX/expr/expr.const/p3-0x-nowarn.cpp +++ b/clang/test/CXX/expr/expr.const/p3-0x-nowarn.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -std=c++11 -Wno-c++11-narrowing -verify %s +// expected-no-diagnostics // void f(int x) { diff --git a/clang/test/CXX/expr/expr.post/expr.const.cast/p1-0x.cpp b/clang/test/CXX/expr/expr.post/expr.const.cast/p1-0x.cpp index 6ba8d51..be89876 100644 --- a/clang/test/CXX/expr/expr.post/expr.const.cast/p1-0x.cpp +++ b/clang/test/CXX/expr/expr.post/expr.const.cast/p1-0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics // The result of the expression const_cast(v) is of type T. If T is // an lvalue reference to object type, the result is an lvalue; if T diff --git a/clang/test/CXX/expr/expr.post/expr.ref/p3.cpp b/clang/test/CXX/expr/expr.post/expr.ref/p3.cpp index 98771d3..db33c01 100644 --- a/clang/test/CXX/expr/expr.post/expr.ref/p3.cpp +++ b/clang/test/CXX/expr/expr.post/expr.ref/p3.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -verify -fsyntax-only %s +// expected-no-diagnostics template struct Node { int lhs; diff --git a/clang/test/CXX/expr/expr.post/expr.static.cast/p3-0x.cpp b/clang/test/CXX/expr/expr.post/expr.static.cast/p3-0x.cpp index 9ef15e6..830ccda 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 731c508..c624c7e 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 253744e..568c61b 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 c4deba9..b4b1605 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 930a4b3..93c2805 100644 --- a/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p18.cpp +++ b/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p18.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 %s -Wunused -verify +// expected-no-diagnostics template struct is_same { diff --git a/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p20.cpp b/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p20.cpp index 4487cfc..17eb841 100644 --- a/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p20.cpp +++ b/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p20.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 %s -Wunused -verify +// expected-no-diagnostics template void destroy(T* ptr) { diff --git a/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p21.cpp b/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p21.cpp index 7139058..bc2c999 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 b5de1a7..1f5969d 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 2dd6b23..08ab0ca 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 2f6c094..471d1c5 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 803b0cc..4c60b8b 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 5342153..f84f5fb 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 2be0328..c74d8f3 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 4125521..a1c0d4f3 100644 --- a/clang/test/CXX/over/over.built/p23.cpp +++ b/clang/test/CXX/over/over.built/p23.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s +// expected-no-diagnostics struct Variant { template operator T(); diff --git a/clang/test/CXX/over/over.built/p25.cpp b/clang/test/CXX/over/over.built/p25.cpp index aea3854..09e550d 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 3971acc..f813305 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 5c315a7..59e3dac 100644 --- a/clang/test/CXX/over/over.match/over.match.best/p1.cpp +++ b/clang/test/CXX/over/over.match/over.match.best/p1.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics template int &f0(T*, int); float &f0(void*, int); diff --git a/clang/test/CXX/over/over.match/over.match.funcs/over.match.oper/p3.cpp b/clang/test/CXX/over/over.match/over.match.funcs/over.match.oper/p3.cpp index c8b07e5..35f8808 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 3845af0..68c7990 100644 --- a/clang/test/CXX/over/over.match/over.match.funcs/p4-0x.cpp +++ b/clang/test/CXX/over/over.match/over.match.funcs/p4-0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics template T &lvalue(); template T &&xvalue(); diff --git a/clang/test/CXX/over/over.oper/over.literal/p7.cpp b/clang/test/CXX/over/over.oper/over.literal/p7.cpp index 72411b9..74e9457 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 d2add82..5a45f7c 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 fff8844..9d03a55 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 a2613f4..4a9f3f2 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 9500a7d..4d82184 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 b05c992..4a10eb9 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 000c870..d0f15d4 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 b03ed46..67f317b 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 966e3c1..aafe4808 100644 --- a/clang/test/CXX/temp/temp.decls/temp.alias/p1.cpp +++ b/clang/test/CXX/temp/temp.decls/temp.alias/p1.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics template using U = T; diff --git a/clang/test/CXX/temp/temp.decls/temp.class.spec/p9.cpp b/clang/test/CXX/temp/temp.decls/temp.class.spec/p9.cpp index 2a3e914..df0e68d 100644 --- a/clang/test/CXX/temp/temp.decls/temp.class.spec/p9.cpp +++ b/clang/test/CXX/temp/temp.decls/temp.class.spec/p9.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // PR8905 template diff --git a/clang/test/CXX/temp/temp.decls/temp.class.spec/temp.class.order/p2.cpp b/clang/test/CXX/temp/temp.decls/temp.class.spec/temp.class.order/p2.cpp index 97457ea..64cc592 100644 --- a/clang/test/CXX/temp/temp.decls/temp.class.spec/temp.class.order/p2.cpp +++ b/clang/test/CXX/temp/temp.decls/temp.class.spec/temp.class.order/p2.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics template struct X { static const int value = 0; }; diff --git a/clang/test/CXX/temp/temp.decls/temp.class.spec/temp.class.spec.mfunc/p1.cpp b/clang/test/CXX/temp/temp.decls/temp.class.spec/temp.class.spec.mfunc/p1.cpp index 87e21e4..184160a 100644 --- a/clang/test/CXX/temp/temp.decls/temp.class.spec/temp.class.spec.mfunc/p1.cpp +++ b/clang/test/CXX/temp/temp.decls/temp.class.spec/temp.class.spec.mfunc/p1.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics template struct A; diff --git a/clang/test/CXX/temp/temp.decls/temp.class/temp.mem.func/p1-retmem.cpp b/clang/test/CXX/temp/temp.decls/temp.class/temp.mem.func/p1-retmem.cpp index 4c05c62..213f0c6 100644 --- a/clang/test/CXX/temp/temp.decls/temp.class/temp.mem.func/p1-retmem.cpp +++ b/clang/test/CXX/temp/temp.decls/temp.class/temp.mem.func/p1-retmem.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics template struct X1 { }; diff --git a/clang/test/CXX/temp/temp.decls/temp.class/temp.mem.func/pr5056.cpp b/clang/test/CXX/temp/temp.decls/temp.class/temp.mem.func/pr5056.cpp index 70c9c70..fcbb724 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 4d56653..6d22f88 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 815f8bf..8212a125 100644 --- a/clang/test/CXX/temp/temp.decls/temp.fct/temp.func.order/p3.cpp +++ b/clang/test/CXX/temp/temp.decls/temp.fct/temp.func.order/p3.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics namespace DeduceVsMember { template diff --git a/clang/test/CXX/temp/temp.decls/temp.fct/temp.func.order/p5.cpp b/clang/test/CXX/temp/temp.decls/temp.fct/temp.func.order/p5.cpp index 4d34968..5f2dbb6 100644 --- a/clang/test/CXX/temp/temp.decls/temp.fct/temp.func.order/p5.cpp +++ b/clang/test/CXX/temp/temp.decls/temp.fct/temp.func.order/p5.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics template int &f(T); template float &f(T*, int=1); diff --git a/clang/test/CXX/temp/temp.decls/temp.fct/temp.over.link/p4.cpp b/clang/test/CXX/temp/temp.decls/temp.fct/temp.over.link/p4.cpp index f42b94a..d24a3fb 100644 --- a/clang/test/CXX/temp/temp.decls/temp.fct/temp.over.link/p4.cpp +++ b/clang/test/CXX/temp/temp.decls/temp.fct/temp.over.link/p4.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // All of these function templates are distinct. template void f0(T) { } diff --git a/clang/test/CXX/temp/temp.decls/temp.friend/p5.cpp b/clang/test/CXX/temp/temp.decls/temp.friend/p5.cpp index 63fd3df..4b899e4 100644 --- a/clang/test/CXX/temp/temp.decls/temp.friend/p5.cpp +++ b/clang/test/CXX/temp/temp.decls/temp.friend/p5.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics namespace test0 { template class A { diff --git a/clang/test/CXX/temp/temp.decls/temp.mem/p1.cpp b/clang/test/CXX/temp/temp.decls/temp.mem/p1.cpp index f5f1205..01eab24 100644 --- a/clang/test/CXX/temp/temp.decls/temp.mem/p1.cpp +++ b/clang/test/CXX/temp/temp.decls/temp.mem/p1.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics template struct A { static T cond; diff --git a/clang/test/CXX/temp/temp.decls/temp.variadic/deduction.cpp b/clang/test/CXX/temp/temp.decls/temp.variadic/deduction.cpp index fec8060..2e24fc0 100644 --- a/clang/test/CXX/temp/temp.decls/temp.variadic/deduction.cpp +++ b/clang/test/CXX/temp/temp.decls/temp.variadic/deduction.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics namespace DeductionForInstantiation { template diff --git a/clang/test/CXX/temp/temp.decls/temp.variadic/example-bind.cpp b/clang/test/CXX/temp/temp.decls/temp.variadic/example-bind.cpp index db28eea..83e03bc 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 e15203a..4cbacf8 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 9de5fa8..f580047 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 b5786ac..c09c0b2 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 71bd6aa..36535e3 100644 --- a/clang/test/CXX/temp/temp.decls/temp.variadic/partial-ordering.cpp +++ b/clang/test/CXX/temp/temp.decls/temp.variadic/partial-ordering.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics // Various tests related to partial ordering of variadic templates. template struct tuple; diff --git a/clang/test/CXX/temp/temp.fct.spec/temp.arg.explicit/p3-0x.cpp b/clang/test/CXX/temp/temp.fct.spec/temp.arg.explicit/p3-0x.cpp index 4d29b74..36b0700 100644 --- a/clang/test/CXX/temp/temp.fct.spec/temp.arg.explicit/p3-0x.cpp +++ b/clang/test/CXX/temp/temp.fct.spec/temp.arg.explicit/p3-0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics namespace ParameterPacksWithFunctions { template struct count; diff --git a/clang/test/CXX/temp/temp.fct.spec/temp.arg.explicit/p9-0x.cpp b/clang/test/CXX/temp/temp.fct.spec/temp.arg.explicit/p9-0x.cpp index 81addfe..a9bda621 100644 --- a/clang/test/CXX/temp/temp.fct.spec/temp.arg.explicit/p9-0x.cpp +++ b/clang/test/CXX/temp/temp.fct.spec/temp.arg.explicit/p9-0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics // Metafunction to extract the Nth type from a set of types. template struct get_nth_type; diff --git a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/cwg1170.cpp b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/cwg1170.cpp index c14b063..47184ec 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 6481485..1907bd7 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 c165c45..4be81d8 100644 --- a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.call/p2.cpp +++ b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.call/p2.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics template struct A { }; // bullet 1 diff --git a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.call/p4.cpp b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.call/p4.cpp index 83b5f23..132d618 100644 --- a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.call/p4.cpp +++ b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.call/p4.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics namespace PR8598 { template struct identity { typedef T type; }; diff --git a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.conv/p2.cpp b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.conv/p2.cpp index 5a9ea08..badd5a8 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 e23e98a..a5916ba 100644 --- a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.conv/p3.cpp +++ b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.conv/p3.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics struct AnyPtr { template operator T*() const; diff --git a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.partial/p12.cpp b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.partial/p12.cpp index b965300..ec7e897 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 f204caf..cc129c0 100644 --- a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.partial/p9-0x.cpp +++ b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.partial/p9-0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics template int &f0(T&); template float &f0(T&&); diff --git a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p10-0x.cpp b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p10-0x.cpp index 8183061..b38ade3 100644 --- a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p10-0x.cpp +++ b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p10-0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics template void f(T&&); template<> void f(int&) { } void (*fp)(int&) = &f; diff --git a/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p2-0x.cpp b/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/p2-0x.cpp index 5b031c2..e3a9f57 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 4e98a6d..20e6ea2 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 fcc6cf7..09b1648 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 c819d97..d239a5e 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 a6b1172..6ef8e2f 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 93e45dd..532dd84 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 103a1bd..64ca805 100644 --- a/clang/test/CXX/temp/temp.names/p4.cpp +++ b/clang/test/CXX/temp/temp.names/p4.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics struct meta { template diff --git a/clang/test/CXX/temp/temp.param/p10-0x.cpp b/clang/test/CXX/temp/temp.param/p10-0x.cpp index 37bb284..21a96bf 100644 --- a/clang/test/CXX/temp/temp.param/p10-0x.cpp +++ b/clang/test/CXX/temp/temp.param/p10-0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s +// expected-no-diagnostics template struct Y1; template struct Y2; diff --git a/clang/test/CXX/temp/temp.param/p10.cpp b/clang/test/CXX/temp/temp.param/p10.cpp index b9dac75..4feea82 100644 --- a/clang/test/CXX/temp/temp.param/p10.cpp +++ b/clang/test/CXX/temp/temp.param/p10.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics template struct Y1; template struct Y2; diff --git a/clang/test/CXX/temp/temp.param/p13.cpp b/clang/test/CXX/temp/temp.param/p13.cpp index 7e7dbe5..257b36f 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 fed6e9c..4eca057 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 3cbb3b7c..67efc4e 100644 --- a/clang/test/CXX/temp/temp.param/p5.cpp +++ b/clang/test/CXX/temp/temp.param/p5.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -verify %s -std=c++11 +// expected-no-diagnostics template struct S { decltype(I) n; diff --git a/clang/test/CXX/temp/temp.param/p8.cpp b/clang/test/CXX/temp/temp.param/p8.cpp index fed048c..592e41e 100644 --- a/clang/test/CXX/temp/temp.param/p8.cpp +++ b/clang/test/CXX/temp/temp.param/p8.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics template struct A; template struct A; template struct B; diff --git a/clang/test/CXX/temp/temp.res/temp.dep/p3.cpp b/clang/test/CXX/temp/temp.res/temp.dep/p3.cpp index c41a4c6..88b4752e 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 0aba402..8f2a599 100644 --- a/clang/test/CXX/temp/temp.res/temp.dep/temp.dep.constexpr/p2-0x.cpp +++ b/clang/test/CXX/temp/temp.res/temp.dep/temp.dep.constexpr/p2-0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -verify %s +// expected-no-diagnostics template struct S; diff --git a/clang/test/CXX/temp/temp.res/temp.local/p1.cpp b/clang/test/CXX/temp/temp.res/temp.local/p1.cpp index 1ad4464..f6ef636 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 bd05e75..3fa9c99 100644 --- a/clang/test/CXX/temp/temp.res/temp.local/p7.cpp +++ b/clang/test/CXX/temp/temp.res/temp.local/p7.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics template struct A { int B; diff --git a/clang/test/CXX/temp/temp.res/temp.local/p8.cpp b/clang/test/CXX/temp/temp.res/temp.local/p8.cpp index 5d9d509..fecfed0 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 3843c0d..263356e 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 5fa2f62..f03811f 100644 --- a/clang/test/CXX/temp/temp.spec/temp.expl.spec/p11.cpp +++ b/clang/test/CXX/temp/temp.spec/temp.expl.spec/p11.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics template class Array { /* ... */ }; template void sort(Array& v); diff --git a/clang/test/CXX/temp/temp.spec/temp.expl.spec/p9.cpp b/clang/test/CXX/temp/temp.spec/temp.expl.spec/p9.cpp index d4ce01f..10ec66d 100644 --- a/clang/test/CXX/temp/temp.spec/temp.expl.spec/p9.cpp +++ b/clang/test/CXX/temp/temp.spec/temp.expl.spec/p9.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics namespace N { template class X { /* ... */ }; diff --git a/clang/test/CXX/temp/temp.spec/temp.explicit/p11.cpp b/clang/test/CXX/temp/temp.spec/temp.explicit/p11.cpp index 4ca5428..5363cbe 100644 --- a/clang/test/CXX/temp/temp.spec/temp.explicit/p11.cpp +++ b/clang/test/CXX/temp/temp.spec/temp.explicit/p11.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics class X { template class Y {}; diff --git a/clang/test/CXX/temp/temp.spec/temp.explicit/p3-0x.cpp b/clang/test/CXX/temp/temp.spec/temp.explicit/p3-0x.cpp index 1028830..146b6b5 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 1382272..0f5db21 100644 --- a/clang/test/CXX/temp/temp.spec/temp.explicit/p6.cpp +++ b/clang/test/CXX/temp/temp.spec/temp.explicit/p6.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics template class Array { /* ... */ }; template void sort(Array& v) { } diff --git a/clang/test/CodeGen/2009-06-01-addrofknr.c b/clang/test/CodeGen/2009-06-01-addrofknr.c index 17d6fdf..f987e32 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 140ff6c..2855045 100644 --- a/clang/test/CodeGen/arm-aapcs-zerolength-bitfield.c +++ b/clang/test/CodeGen/arm-aapcs-zerolength-bitfield.c @@ -1,5 +1,6 @@ // REQUIRES: arm-registered-target // RUN: %clang_cc1 -target-abi aapcs -triple armv7-apple-darwin10 %s -verify +// expected-no-diagnostics #include diff --git a/clang/test/CodeGen/arm-apcs-zerolength-bitfield.c b/clang/test/CodeGen/arm-apcs-zerolength-bitfield.c index 049ffae..763db65 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 e630796..28364de 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 8fbeadf..e62e225 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 ce4640a..5469d11 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 41bb5e2..99b8ecd 100644 --- a/clang/test/CodeGenCXX/dependent-type-member-pointer.cpp +++ b/clang/test/CodeGenCXX/dependent-type-member-pointer.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -emit-llvm-only -verify %s +// expected-no-diagnostics // PR7736 template int InitMember(scriptmemberptr); diff --git a/clang/test/CodeGenCXX/enum.cpp b/clang/test/CodeGenCXX/enum.cpp index cfcd264..3985e96 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 1d4f430..802ed46 100644 --- a/clang/test/CodeGenCXX/incomplete-types.cpp +++ b/clang/test/CodeGenCXX/incomplete-types.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -emit-llvm-only -verify +// expected-no-diagnostics // PR5489 template diff --git a/clang/test/CodeGenCXX/instantiate-init-list.cpp b/clang/test/CodeGenCXX/instantiate-init-list.cpp index 49c6f51..e498d24 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 2054137..3def43e 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 688d92d..d509b0e 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 2c50e18..be171a3 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 49859ac..641734d 100644 --- a/clang/test/CodeGenCXX/new-operator-phi.cpp +++ b/clang/test/CodeGenCXX/new-operator-phi.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -emit-llvm-only -verify %s +// expected-no-diagnostics // PR5454 #include diff --git a/clang/test/CodeGenCXX/reference-bind-default-argument.cpp b/clang/test/CodeGenCXX/reference-bind-default-argument.cpp index acce962..5cf279f 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 9469c84..d47b1f3 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 53dc9a7..ff82f6d 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 768e6de..354fcd4 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 0de6683..cb4a6c6 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 2515acb..f04185b 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 a11c67e..3c6f9c0 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 e449393..21246a3 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 2cdc26d..a994cb7 100644 --- a/clang/test/Driver/x86_64-nacl-types.cpp +++ b/clang/test/Driver/x86_64-nacl-types.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple x86_64-unknown-nacl -std=c++11 -verify %s +// expected-no-diagnostics #include #include diff --git a/clang/test/Frontend/iframework.c b/clang/test/Frontend/iframework.c index 7180416..6f801f2 100644 --- a/clang/test/Frontend/iframework.c +++ b/clang/test/Frontend/iframework.c @@ -1,3 +1,4 @@ // RUN: %clang -fsyntax-only -iframework %S/Inputs %s -Xclang -verify +// expected-no-diagnostics #include diff --git a/clang/test/Frontend/macros.c b/clang/test/Frontend/macros.c index 828c762..68f2203 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 53a5a45..eea025c 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 883dafb..623e5e3 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 d8d2769..6644042 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 eea8d44..acf01b4 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 16b42d2d..442f8a0 100644 --- a/clang/test/Headers/int64-type.c +++ b/clang/test/Headers/int64-type.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -verify %s -ffreestanding +// expected-no-diagnostics #include typedef unsigned long long uint64_t; diff --git a/clang/test/Headers/typedef_guards.c b/clang/test/Headers/typedef_guards.c index 646b2ca..968b26d 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 93a99ad..35ae7aff 100644 --- a/clang/test/Headers/wchar_limits.cpp +++ b/clang/test/Headers/wchar_limits.cpp @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -ffreestanding -fsyntax-only -verify %s // RUN: %clang_cc1 -ffreestanding -fsyntax-only -verify -fshort-wchar %s +// expected-no-diagnostics #include diff --git a/clang/test/Headers/wmmintrin.c b/clang/test/Headers/wmmintrin.c index 6aa8be4..8cabbf0 100644 --- a/clang/test/Headers/wmmintrin.c +++ b/clang/test/Headers/wmmintrin.c @@ -1,4 +1,5 @@ // Check that wmmintrin.h is includable with just -maes. // RUN: %clang_cc1 -triple x86_64-unknown-unknown \ // RUN: -verify %s -ffreestanding -target-feature +aes +// expected-no-diagnostics #include diff --git a/clang/test/Lexer/clang-keywords.cpp b/clang/test/Lexer/clang-keywords.cpp index a349b44..3a24dce 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 cf6e478..e940caf 100644 --- a/clang/test/Lexer/digraph.c +++ b/clang/test/Lexer/digraph.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -ffreestanding %s +// expected-no-diagnostics %:include diff --git a/clang/test/Lexer/gnu_keywords.c b/clang/test/Lexer/gnu_keywords.c index c4bd9b3e..10a7d31 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 c3f371d..1a0f37b 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 9ef6e32..3469b59 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 3c45f28..eeabe8b 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 5407ba9..60981fe 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 96e8485..e58b226 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 d1426cc..b77b95e 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 87f676e..63944b0 100644 --- a/clang/test/Misc/predefines.c +++ b/clang/test/Misc/predefines.c @@ -1,4 +1,5 @@ /* RUN: %clang_cc1 -fsyntax-only -verify -std=c89 -ffreestanding -pedantic-errors %s + * expected-no-diagnostics * rdar://6814950 */ #include diff --git a/clang/test/Modules/Inputs/lookup_right.hpp b/clang/test/Modules/Inputs/lookup_right.hpp index 8845347..b2611a1 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 de6f57b..d974dae 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 5444854..49549d0 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 bee1cec..8c61bc081 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 2b8c545..8b50529 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 3f3e695..221e154 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 e014bea..a758abc 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 e2d762c..4541740 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 23c54ea..efe5c1b 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 99bc14d..160829b 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 eed2224..da9eef7 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 1b91c73..7836e09 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 c99d6d4..03fdee7 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 0d50e61..4b64f51 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 f5724c4..bffa092 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 18356f7..b0fd63d 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 585da44..13f2e39b 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 ad45192..556c28e 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 9cd3194..b7707e0 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 bdba42b..f7d45ce 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 74df01a..3b4fe77 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 ccdc874..ff6322d 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 6ec65b2..40490ea 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 1803a11..afbb80b 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 0fd3de7..e0ff27c 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 6312ca9..d27e9ca 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 3df3479..938f36f 100644 --- a/clang/test/PCH/cxx-traits.cpp +++ b/clang/test/PCH/cxx-traits.cpp @@ -4,6 +4,8 @@ // RUN: %clang_cc1 -x c++-header -std=c++11 -emit-pch -o %t %S/cxx-traits.h // RUN: %clang_cc1 -std=c++11 -include-pch %t -fsyntax-only -verify %s +// expected-no-diagnostics + bool _Is_pod_comparator = __is_pod::__value; bool _Is_empty_check = __is_empty::__value; diff --git a/clang/test/PCH/cxx-typeid.cpp b/clang/test/PCH/cxx-typeid.cpp index 41dd544..d1e0f9d 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 c78a1a5..dc00758 100644 --- a/clang/test/PCH/cxx-variadic-templates.cpp +++ b/clang/test/PCH/cxx-variadic-templates.cpp @@ -7,6 +7,8 @@ // RUN: %clang_cc1 -std=c++11 -include-pch %t -verify %s -ast-dump -o - // RUN: %clang_cc1 -std=c++11 -include-pch %t %s -emit-llvm -o - | FileCheck %s +// expected-no-diagnostics + // CHECK: allocate_shared shared_ptr spi = shared_ptr::allocate_shared(1, 2); diff --git a/clang/test/PCH/cxx11-exception-spec.cpp b/clang/test/PCH/cxx11-exception-spec.cpp index 3fca4e4..446619e 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 01fc33a..0fb7590 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 10ceb7c..81dbd90 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 5928abd..c0b279f 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 1e59054..ad7a6c3 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 277c6dd..c7dd805 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 cce3173..c1220f8 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 8ef3351..e41dadd 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 e8aab84..ea40460 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 b51cd90..88a0919 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 b612d89..2ca0e6e 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 5b996bb..103b252 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 b304c4b..601c940 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 fb465a3..7639f1f 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 97e22cf..4bec050 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 29edb75..52873bf 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 97ba113..53cd997 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 a8cc258..d88daf3 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 3cdf2b0..9aff963 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 4f3609d..9a0e4a6 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 8603b30..5ea0ce2 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 14912fd..11092ad 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 444862a..be79db3 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 a1ef0944..a210205 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 7b8022e..056cee1 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 fa6e413..bad5c7c 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 c368fab..61119ea 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 fb975cb..b11a75e 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 8667a71..31d17a9 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 84850ff..4598da0 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 3abb62b..01c7ed6 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 9fa8a68..f6afd12 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 152aacb..84cd38d 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 ea25dea..bb7354f 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 5ba2da9..3e2a86d 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 be342a2..472686e 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 53b9dd5..db8c083 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 4946122..b972d91 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 5ee2972..39cb349 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 38c0384..3e5a2c4 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 8ab12d9..39155e4 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 457e6f7..bba3172 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 0ec288c..3522f73 100644 --- a/clang/test/Preprocessor/objc-pp.m +++ b/clang/test/Preprocessor/objc-pp.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -fsyntax-only -verify -pedantic -ffreestanding +// expected-no-diagnostics #import // no warning on #import in objc mode. diff --git a/clang/test/Preprocessor/optimize.c b/clang/test/Preprocessor/optimize.c index 97f841a..0167e70 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 17080fe..075c980 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 8e3db56..23f24f9 100644 --- a/clang/test/Preprocessor/user_defined_system_framework.c +++ b/clang/test/Preprocessor/user_defined_system_framework.c @@ -1,4 +1,5 @@ // RUN: %clang -cc1 -fsyntax-only -F %S/Inputs -Wsign-conversion -verify %s +// expected-no-diagnostics // Check that TestFramework is treated as a system header. #include diff --git a/clang/test/Sema/PR2727.c b/clang/test/Sema/PR2727.c index 332b0df..11282fd 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 e9f1dea..0c99405 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 f22e70d..5741de8 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 e842a73..c13485b 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 0a5d3fe..544f539 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 edea5d8..09bf633 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 c6cd754..6b93a48 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 912776a..9b2811c 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 ed92619..3de672b 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 d017fdb..4b76515 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 7f172b1..ac90850 100644 --- a/clang/test/Sema/assign-null.c +++ b/clang/test/Sema/assign-null.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics #include diff --git a/clang/test/Sema/bitfield-layout.c b/clang/test/Sema/bitfield-layout.c index 2655fc7..d226391 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 4d14ad1..3189cd5 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 9bfbfbd..74f1b0e 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 357a5bc..419e92d 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 d6b004a..729dc45 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 070ea74..ae33c20 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 23c3b68..a59bf718 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 5727a93..1290bf4 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 8beaf9d..73b4a8a 100644 --- a/clang/test/Sema/const-ptr-int-ptr-cast.c +++ b/clang/test/Sema/const-ptr-int-ptr-cast.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -ffreestanding %s +// expected-no-diagnostics #include diff --git a/clang/test/Sema/constant-builtins.c b/clang/test/Sema/constant-builtins.c index 0045ea0..c98f62d 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 2080974..bd357ed 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 0eb6c14..b6ba972 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 d0883ba..6e97a4f 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 d3e4020..7902715 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 1ffc439a..02fea46 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 505e522..385cf1f 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 49ec7cc..9d18e22 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 f0cf32b..a95e789 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 c56ab3b..0f425bd 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 6d5d632..934f32f 100644 --- a/clang/test/Sema/knr-variadic-def.c +++ b/clang/test/Sema/knr-variadic-def.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -pedantic %s +// expected-no-diagnostics // PR4287 #include diff --git a/clang/test/Sema/many-logical-ops.c b/clang/test/Sema/many-logical-ops.c index 09a7684..ec3bbda 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 7bda143..edbbea5 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 9289b90..d238a7a1 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 8e816e0..d56d157 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 fa0314e..acdc589 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 64c6939..fd93fcb 100644 --- a/clang/test/Sema/pragma-align-mac68k.c +++ b/clang/test/Sema/pragma-align-mac68k.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple i386-apple-darwin9 -fsyntax-only -verify %s +// expected-no-diagnostics #include diff --git a/clang/test/Sema/pragma-align-packed.c b/clang/test/Sema/pragma-align-packed.c index 74fbd13..b8daf40 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 4a4c202..3696a22 100644 --- a/clang/test/Sema/pragma-pack-2.c +++ b/clang/test/Sema/pragma-pack-2.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple i686-apple-darwin9 %s -fsyntax-only -verify +// expected-no-diagnostics #include diff --git a/clang/test/Sema/pragma-pack-3.c b/clang/test/Sema/pragma-pack-3.c index d97359e..e7a6cee 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 b06fc0e..6a09e14 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 95bbe1f..24bd4cd 100644 --- a/clang/test/Sema/pragma-pack-5.c +++ b/clang/test/Sema/pragma-pack-5.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple x86_64-apple-darwin9 %s -fsyntax-only -verify -ffreestanding +// expected-no-diagnostics // and PR9560 // Check #pragma pack handling with bitfields. diff --git a/clang/test/Sema/pragma-pack-6.c b/clang/test/Sema/pragma-pack-6.c index 40659c2..c87c99d 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 eb9641b..83c3a0a 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 6605c4e..9bf0064 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 30ef892..8aa7ca9 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 6ca6a60..166d5eb 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 dd673b9..db9ab3f 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 31c9391..bf1fb17 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 8372154..98b1ab8 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 f3cc49c..6fa1801 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 9f514c1..2659a1b 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 ba4bb71..4f23cb8 100644 --- a/clang/test/Sema/variadic-block.c +++ b/clang/test/Sema/variadic-block.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -verify -fsyntax-only -fblocks +// expected-no-diagnostics #include diff --git a/clang/test/Sema/vfprintf-valid-redecl.c b/clang/test/Sema/vfprintf-valid-redecl.c index 14fbbc4..5c5ce8d 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 bdb3374..e55cfba 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 3a2c0e5..ad43769 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 b84e7c1..e27c084 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 d932b5d..14e5160 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 08644ad..5ba74aa 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 b5aac5f..eeb73f6 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 854d9b0..144fde6 100644 --- a/clang/test/SemaCXX/PR6562.cpp +++ b/clang/test/SemaCXX/PR6562.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics struct X { ~X(); }; template diff --git a/clang/test/SemaCXX/PR9884.cpp b/clang/test/SemaCXX/PR9884.cpp index ab883c4..bb8bd6a 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 80086e4..a34f99c 100644 --- a/clang/test/SemaCXX/PR9902.cpp +++ b/clang/test/SemaCXX/PR9902.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s +// expected-no-diagnostics template struct __allocator_traits_rebind diff --git a/clang/test/SemaCXX/PR9908.cpp b/clang/test/SemaCXX/PR9908.cpp index fc090cc..a15b637 100644 --- a/clang/test/SemaCXX/PR9908.cpp +++ b/clang/test/SemaCXX/PR9908.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s +// expected-no-diagnostics template struct __allocator_traits_rebind diff --git a/clang/test/SemaCXX/__try.cpp b/clang/test/SemaCXX/__try.cpp index cb5d38a..a0f503a 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 8e682eb..9f987a9 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 1b15094..02e9cac 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 adbff55..3f81c27 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 4831530..1e4bd45 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 324d20e..590cd3c 100644 --- a/clang/test/SemaCXX/builtin-exception-spec.cpp +++ b/clang/test/SemaCXX/builtin-exception-spec.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -isystem %S/Inputs -fsyntax-only -verify %s +// expected-no-diagnostics #include extern "C" { diff --git a/clang/test/SemaCXX/builtin-ptrtomember-overload.cpp b/clang/test/SemaCXX/builtin-ptrtomember-overload.cpp index c7b5173..c27d642 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 0e90d54..082fb28 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 0052856..41d2fa2 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 d81944a..f2ff9fc 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 79ff7d1..3a6162b 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 e75833a..f70f9df 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 c515378..07c04ef 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 db52565..3202dfe 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 2f95075..a5ac54b 100644 --- a/clang/test/SemaCXX/decltype-pr4444.cpp +++ b/clang/test/SemaCXX/decltype-pr4444.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11 +// expected-no-diagnostics template struct TestStruct { diff --git a/clang/test/SemaCXX/decltype-pr4448.cpp b/clang/test/SemaCXX/decltype-pr4448.cpp index 9d33ce7..b781b89 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 a13416f..21b4b60 100644 --- a/clang/test/SemaCXX/decltype-this.cpp +++ b/clang/test/SemaCXX/decltype-this.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s +// expected-no-diagnostics template struct is_same { static const bool value = false; diff --git a/clang/test/SemaCXX/decltype.cpp b/clang/test/SemaCXX/decltype.cpp index a1200e0..ef3103d 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 3ab7bf4..c0880d5 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 2602ae1..67534db 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 c68f2bb..951f16c 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 2e18070..e26e864 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 56b2daa..ab75a4f 100644 --- a/clang/test/SemaCXX/friend-out-of-line.cpp +++ b/clang/test/SemaCXX/friend-out-of-line.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // namespace N { diff --git a/clang/test/SemaCXX/gnu-case-ranges.cpp b/clang/test/SemaCXX/gnu-case-ranges.cpp index b082e3a..c613cec 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 01ea031..b42a611 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 5b3fac4..cb2213d 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 ab03a15..bfec6e0 100644 --- a/clang/test/SemaCXX/issue547.cpp +++ b/clang/test/SemaCXX/issue547.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics template struct classify_function { diff --git a/clang/test/SemaCXX/local-classes.cpp b/clang/test/SemaCXX/local-classes.cpp index 500b219..f4ca791 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 c75b185..39f5a15 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 6e35eb2..246afee2 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 7ed60f7..d4c6c0b 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 3aa1eaf..8b59523 100644 --- a/clang/test/SemaCXX/member-pointer-size.cpp +++ b/clang/test/SemaCXX/member-pointer-size.cpp @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -triple x86_64-unknown-unknown %s -fsyntax-only -verify // RUN: %clang_cc1 -triple i686-unknown-unknown %s -fsyntax-only -verify +// expected-no-diagnostics #include struct A; diff --git a/clang/test/SemaCXX/ms-exception-spec.cpp b/clang/test/SemaCXX/ms-exception-spec.cpp index bda56f5..1be8ec2 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 981476d..c2dfc77 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 20b15b7..ae10065 100644 --- a/clang/test/SemaCXX/new-delete-predefined-decl.cpp +++ b/clang/test/SemaCXX/new-delete-predefined-decl.cpp @@ -1,5 +1,6 @@ // RUN: %clang_cc1 -DTEMPLATE_OVERLOAD -fsyntax-only -verify %s // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics #include diff --git a/clang/test/SemaCXX/no-warn-composite-pointer-type.cpp b/clang/test/SemaCXX/no-warn-composite-pointer-type.cpp index b52914a..d716f45 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 0d624c2..306b203 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 c1834a7..763daad 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 6a5a162..bf54389 100644 --- a/clang/test/SemaCXX/overloaded-builtin-operators-0x.cpp +++ b/clang/test/SemaCXX/overloaded-builtin-operators-0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -fshow-overloads=best -std=c++11 -verify %s +// expected-no-diagnostics template struct X diff --git a/clang/test/SemaCXX/pragma-pack.cpp b/clang/test/SemaCXX/pragma-pack.cpp index 5c1d5c6..e468cce 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 c9ddffa..c9eaab6 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 3c77dae..5457bbe 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 a6cbbad..0b6aaef 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 787e330..85ed0aa 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 83b0a59..750821b 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 9a177c0..7ce21c5 100644 --- a/clang/test/SemaCXX/short-wchar-sign.cpp +++ b/clang/test/SemaCXX/short-wchar-sign.cpp @@ -1,6 +1,7 @@ // RUN: %clang_cc1 -triple i386-mingw32 -fsyntax-only -pedantic -verify %s // RUN: %clang_cc1 -fshort-wchar -fsyntax-only -pedantic -verify %s // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -pedantic -verify %s +// expected-no-diagnostics // Check that short wchar_t is unsigned, and that regular wchar_t is not. int test[(wchar_t(-1) typedef struct Point Point; diff --git a/clang/test/SemaCXX/trivial-constructor.cpp b/clang/test/SemaCXX/trivial-constructor.cpp index bda206b..ed5b526 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 db415cf..d3acec6 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 3598082..d05ff4d 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 39a446f..da21db3 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 4f929ad..ba81e93 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 2017ffa..b26ca25 100644 --- a/clang/test/SemaCXX/value-dependent-exprs.cpp +++ b/clang/test/SemaCXX/value-dependent-exprs.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -verify %s +// expected-no-diagnostics template class C0 { diff --git a/clang/test/SemaCXX/vararg-default-arg.cpp b/clang/test/SemaCXX/vararg-default-arg.cpp index 3c8e41c..27c2bbb 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 5505009..e643015 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 620be19..2e8d130b 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 05ded4a..d86ab86 100644 --- a/clang/test/SemaCXX/zero-length-arrays.cpp +++ b/clang/test/SemaCXX/zero-length-arrays.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // class Foo { diff --git a/clang/test/SemaObjC/ClassPropertyNotObject.m b/clang/test/SemaObjC/ClassPropertyNotObject.m index 02ed40a..67d76b8 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 06a0ffa..bf4f643 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 c773f26..418f90d 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 635b9fe..bcc1f4b 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 9158b09..83a07e9 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 a6c5f98..99e870f 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 8415c69..978498c 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 a85b606..945d6f6 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 c7ea1d9..5864b63 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 15c3fb6..e0bac99 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 5839bf4..6c28178 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 bf17225..bfa09d9 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 a31d824..ed347c7 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 4223a74..6239e94 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 4ff9428..dd384b5 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 c46d3fb..735b51a 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 91cd138..021047e 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 74e42c96..8e90455 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 750b0a6..e651030 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 47aed3e..b1f7e59 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 098688a..e944e54 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 3ddf3d7..5b4a863 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 6799983..beddd20 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 8197327..d0d6be8 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 a6f66fe..c74b054 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 dc14911..a276a64 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 28b03d9..352f291 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 95153be..4fe643f 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 71c3237..ff5c174 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 a1431d6..be42e7d 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 36a2c1a..996664f 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 d71cebf2..c68c578 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 02b1403..17e34d4 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 336605a..9b083b0 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 60fd900..ffd740f 100644 --- a/clang/test/SemaObjC/interface-scope-2.m +++ b/clang/test/SemaObjC/interface-scope-2.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -triple i686-apple-darwin9 -Wno-objc-root-class %s +// expected-no-diagnostics // FIXME: must also compile as Objective-C++ // diff --git a/clang/test/SemaObjC/interface-scope.m b/clang/test/SemaObjC/interface-scope.m index 0671dae..9875eca 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 abc3420..ff5ff4e 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 ca91ebd..654cd01 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 c205322..d74ae8f 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 53cae83..2596304 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 700565e..807d4da 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 bb01ead..7051ac6 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 dd9b73c..6539a9b 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 6f00b1a..9bbff24 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 1e3c186..9638da4 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 103f6bb..cdb855e 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 dd6e3ad..174f70a 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 88d519d..d5a4eac 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 b211cde..d522e89 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 72d8fa6..4a75f5c 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 a4b83be..55e4897 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 48b28cb..b5cadbd 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 5cbc6d2..77efd55 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 61f36b3..1fc5ef6 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 ba39257..6869bca 100644 --- a/clang/test/SemaObjC/pragma-pack.m +++ b/clang/test/SemaObjC/pragma-pack.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -triple i686-apple-darwin9 -fsyntax-only -verify -Wno-objc-root-class %s +// expected-no-diagnostics // Make sure pragma pack works inside ObjC methods. @interface X diff --git a/clang/test/SemaObjC/property-11.m b/clang/test/SemaObjC/property-11.m index 2976115..e41a840 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 2ca3416..362d6d3 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 f95af59..3298ee5 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 933a4f0..f2a293e 100644 --- a/clang/test/SemaObjC/property-6.m +++ b/clang/test/SemaObjC/property-6.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -fobjc-exceptions %s +// expected-no-diagnostics # 1 "" # 1 "/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h" 1 3 typedef signed char BOOL; diff --git a/clang/test/SemaObjC/property-7.m b/clang/test/SemaObjC/property-7.m index e6cba50..3d03b8f 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 8647aba..da97ffc 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 84eb363..d6220f6 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 5b40d85..a997494 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 c5a928b..4a5f195 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 19d4e68..dc490ed 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 55bf91f..3684cb0 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 71bb86a..e4752c5 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 3b0e825..6ff2cea 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 a4397a6..d57774b 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 c01e833..6962d6f 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 fe01d1d..94a0d9e 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 c333bb5..45010d5 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 bf07523..9e8ed8a 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 ed3fbe0..26718ae 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 4bf6b28..777084d 100644 --- a/clang/test/SemaObjC/protocol-qualified-class-unsupported.m +++ b/clang/test/SemaObjC/protocol-qualified-class-unsupported.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics #include diff --git a/clang/test/SemaObjC/rdar6248119.m b/clang/test/SemaObjC/rdar6248119.m index 046992c..a495978 100644 --- a/clang/test/SemaObjC/rdar6248119.m +++ b/clang/test/SemaObjC/rdar6248119.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only %s -verify -fobjc-exceptions +// expected-no-diagnostics // Test case for: // @finally doesn't introduce a new scope diff --git a/clang/test/SemaObjC/restrict-id-type.m b/clang/test/SemaObjC/restrict-id-type.m index b24fcb0..24f74c9 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 16d44cb..186e19f 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 fb75369..17d1872 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 40a0331..36a9ef5 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 9027a94..a14ad90 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 e0b51e8..ec47ee2 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 3e28986..fd93994 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 c25164e1..81b8f8f 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 7d3f7c7..0c17bb9 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 0e155f4..92a9d71 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 d754415..df954db2d 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 6f2dbf9..bda0a54 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 6070278..f80d1ff 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 fe7ccd7..4959df3 100644 --- a/clang/test/SemaObjC/va-method-1.m +++ b/clang/test/SemaObjC/va-method-1.m @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics #include diff --git a/clang/test/SemaObjC/writable-property-in-superclass.m b/clang/test/SemaObjC/writable-property-in-superclass.m index bbd1f16..99be541 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 d8f840e..12a3be3 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 71771b4..537e6b4 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 274f873..09556e3 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 67bab00..12993a9 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 a25cc68..244c3f7 100644 --- a/clang/test/SemaObjCXX/argument-dependent-lookup.mm +++ b/clang/test/SemaObjCXX/argument-dependent-lookup.mm @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // : For the purposes of Argument-Dependent // Lookup, Objective-C classes are considered to be in the global diff --git a/clang/test/SemaObjCXX/composite-objc-pointertype.mm b/clang/test/SemaObjCXX/composite-objc-pointertype.mm index 684f633..35739a8 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 6c1408b..b34c9a2 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 b03d4d8..063ce32 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 235aaac..41bb4ff 100644 --- a/clang/test/SemaObjCXX/conversion-to-objc-pointer.mm +++ b/clang/test/SemaObjCXX/conversion-to-objc-pointer.mm @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // rdar: // 7963410 template diff --git a/clang/test/SemaObjCXX/debugger-support.mm b/clang/test/SemaObjCXX/debugger-support.mm index 1fb18b9..e8e382a 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 fa65dbe..4035d00 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 b022709..d0d7922 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 8cf615e..ecee7be 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 e70a001..8ea4dab 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 8d3d625..7c83215 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 2a3ae32..9fad82f 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 fc99c15..d99e617 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 3f9c7eb..c8c9ca9 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 584571d..25b57a9a 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 205b443..c5521c1 100644 --- a/clang/test/SemaObjCXX/namespace-lookup.mm +++ b/clang/test/SemaObjCXX/namespace-lookup.mm @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // @interface A diff --git a/clang/test/SemaObjCXX/null_objc_pointer.mm b/clang/test/SemaObjCXX/null_objc_pointer.mm index 0da9e50..e0232bf3 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 2b29b04..73a921e 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 5488ea5..ffb8680 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 d0f8404..4becaaf 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 059793c..2b267ad 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 3a52200..f63e17d 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 fcabade..4d7c049 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 1302128..12608de 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 2e69848..c36b63b 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 e282702..494ee25 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 d6da1c0..e1d556e 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 79dc82d..802ad9b 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 b3ecfec..a156921 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 dd91aa5..567629c 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 e761816..ee5ae20 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 9525bfc..fc523e3 100644 --- a/clang/test/SemaTemplate/ackermann.cpp +++ b/clang/test/SemaTemplate/ackermann.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // template // struct Ackermann { diff --git a/clang/test/SemaTemplate/alias-church-numerals.cpp b/clang/test/SemaTemplate/alias-church-numerals.cpp index 69d7716..a1613230 100644 --- a/clang/test/SemaTemplate/alias-church-numerals.cpp +++ b/clang/test/SemaTemplate/alias-church-numerals.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s +// expected-no-diagnostics template class, typename> class T, template class V> struct PartialApply { template using R = T; diff --git a/clang/test/SemaTemplate/alias-template-template-param.cpp b/clang/test/SemaTemplate/alias-template-template-param.cpp index c22fccb..0b17d10 100644 --- a/clang/test/SemaTemplate/alias-template-template-param.cpp +++ b/clang/test/SemaTemplate/alias-template-template-param.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s +// expected-no-diagnostics template class D> using C = D; diff --git a/clang/test/SemaTemplate/array-to-pointer-decay.cpp b/clang/test/SemaTemplate/array-to-pointer-decay.cpp index 072c0e5..26d277d 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 e9fdc9d..19b607f 100644 --- a/clang/test/SemaTemplate/atomics.cpp +++ b/clang/test/SemaTemplate/atomics.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // PR8345 template T f(T* value) { diff --git a/clang/test/SemaTemplate/default-arguments-cxx0x.cpp b/clang/test/SemaTemplate/default-arguments-cxx0x.cpp index 7714313..4c815f6 100644 --- a/clang/test/SemaTemplate/default-arguments-cxx0x.cpp +++ b/clang/test/SemaTemplate/default-arguments-cxx0x.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s +// expected-no-diagnostics // Test default template arguments for function templates. template diff --git a/clang/test/SemaTemplate/dependent-base-member-init.cpp b/clang/test/SemaTemplate/dependent-base-member-init.cpp index 1d4fed3..a278e79 100644 --- a/clang/test/SemaTemplate/dependent-base-member-init.cpp +++ b/clang/test/SemaTemplate/dependent-base-member-init.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // PR4381 template struct X {}; diff --git a/clang/test/SemaTemplate/dependent-expr.cpp b/clang/test/SemaTemplate/dependent-expr.cpp index a1ddd24..d75b0f3 100644 --- a/clang/test/SemaTemplate/dependent-expr.cpp +++ b/clang/test/SemaTemplate/dependent-expr.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // PR5908 template diff --git a/clang/test/SemaTemplate/enum-argument.cpp b/clang/test/SemaTemplate/enum-argument.cpp index 7d23757..7ff4196 100644 --- a/clang/test/SemaTemplate/enum-argument.cpp +++ b/clang/test/SemaTemplate/enum-argument.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics enum Enum { val = 1 }; template struct C { diff --git a/clang/test/SemaTemplate/example-typelist.cpp b/clang/test/SemaTemplate/example-typelist.cpp index 082aeb8..9ce06e6 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 b8229d3..41d1cfe 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 bbadb63..45136f6 100644 --- a/clang/test/SemaTemplate/instantiate-attr.cpp +++ b/clang/test/SemaTemplate/instantiate-attr.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics template struct A { char a __attribute__((aligned(16))); diff --git a/clang/test/SemaTemplate/instantiate-decl-init.cpp b/clang/test/SemaTemplate/instantiate-decl-init.cpp index 6b76d72..9658fc1 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 49b1b63..7cdeda6 100644 --- a/clang/test/SemaTemplate/instantiate-declref-ice.cpp +++ b/clang/test/SemaTemplate/instantiate-declref-ice.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics template struct x { static const int j = i; x* y; diff --git a/clang/test/SemaTemplate/instantiate-deeply.cpp b/clang/test/SemaTemplate/instantiate-deeply.cpp index c5f6594..ba38b2b 100644 --- a/clang/test/SemaTemplate/instantiate-deeply.cpp +++ b/clang/test/SemaTemplate/instantiate-deeply.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -Wall -verify %s +// expected-no-diagnostics template struct A { template struct B { template struct C { diff --git a/clang/test/SemaTemplate/instantiate-dependent-nested-name.cpp b/clang/test/SemaTemplate/instantiate-dependent-nested-name.cpp index eb1d3fb..06a1ed4 100644 --- a/clang/test/SemaTemplate/instantiate-dependent-nested-name.cpp +++ b/clang/test/SemaTemplate/instantiate-dependent-nested-name.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // PR4382 template struct X { static const T A = 1; }; template::A> struct Y { typedef T A; }; diff --git a/clang/test/SemaTemplate/instantiate-elab-type-specifier.cpp b/clang/test/SemaTemplate/instantiate-elab-type-specifier.cpp index e5e10a8..5db9b56 100644 --- a/clang/test/SemaTemplate/instantiate-elab-type-specifier.cpp +++ b/clang/test/SemaTemplate/instantiate-elab-type-specifier.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // PR5681 template struct Base { diff --git a/clang/test/SemaTemplate/instantiate-enum-2.cpp b/clang/test/SemaTemplate/instantiate-enum-2.cpp index aa3b590..9a90a9c 100644 --- a/clang/test/SemaTemplate/instantiate-enum-2.cpp +++ b/clang/test/SemaTemplate/instantiate-enum-2.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -fsyntax-only -verify +// expected-no-diagnostics template struct X { enum { diff --git a/clang/test/SemaTemplate/instantiate-friend-class.cpp b/clang/test/SemaTemplate/instantiate-friend-class.cpp index c87b8d0..32aa301 100644 --- a/clang/test/SemaTemplate/instantiate-friend-class.cpp +++ b/clang/test/SemaTemplate/instantiate-friend-class.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // PR4794 template class X diff --git a/clang/test/SemaTemplate/instantiate-local-class.cpp b/clang/test/SemaTemplate/instantiate-local-class.cpp index 20b62c1..c151fbb 100644 --- a/clang/test/SemaTemplate/instantiate-local-class.cpp +++ b/clang/test/SemaTemplate/instantiate-local-class.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -verify %s +// expected-no-diagnostics template void f0() { struct X; diff --git a/clang/test/SemaTemplate/instantiate-non-type-template-parameter.cpp b/clang/test/SemaTemplate/instantiate-non-type-template-parameter.cpp index 027c1e8..04975e3 100644 --- a/clang/test/SemaTemplate/instantiate-non-type-template-parameter.cpp +++ b/clang/test/SemaTemplate/instantiate-non-type-template-parameter.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics // PR5311 template diff --git a/clang/test/SemaTemplate/instantiate-overloaded-arrow.cpp b/clang/test/SemaTemplate/instantiate-overloaded-arrow.cpp index ee36427..b21c7a3 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 00d63d0..bf66fdc 100644 --- a/clang/test/SemaTemplate/instantiate-sizeof.cpp +++ b/clang/test/SemaTemplate/instantiate-sizeof.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s +// expected-no-diagnostics // Make sure we handle contexts correctly with sizeof template void f(T n) { diff --git a/clang/test/SemaTemplate/instantiation-default-3.cpp b/clang/test/SemaTemplate/instantiation-default-3.cpp index dae6b18..76189ea9 100644 --- a/clang/test/SemaTemplate/instantiation-default-3.cpp +++ b/clang/test/SemaTemplate/instantiation-default-3.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics template struct A { }; diff --git a/clang/test/SemaTemplate/issue150.cpp b/clang/test/SemaTemplate/issue150.cpp index af3b93c..a04be35 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 2710caf..4fcfbd1 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 40f56b3..6791048 100644 --- a/clang/test/SemaTemplate/member-initializers.cpp +++ b/clang/test/SemaTemplate/member-initializers.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics template struct A { A() : j(10), i(10) { } diff --git a/clang/test/SemaTemplate/nested-linkage.cpp b/clang/test/SemaTemplate/nested-linkage.cpp index 6c0791c..59746ea 100644 --- a/clang/test/SemaTemplate/nested-linkage.cpp +++ b/clang/test/SemaTemplate/nested-linkage.cpp @@ -1,3 +1,4 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics extern "C" { extern "C++" { template C x(); } } diff --git a/clang/test/SemaTemplate/operator-function-id-template.cpp b/clang/test/SemaTemplate/operator-function-id-template.cpp index 9a0884e..96dfe26 100644 --- a/clang/test/SemaTemplate/operator-function-id-template.cpp +++ b/clang/test/SemaTemplate/operator-function-id-template.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics template struct A { diff --git a/clang/test/SemaTemplate/overload-uneval.cpp b/clang/test/SemaTemplate/overload-uneval.cpp index 8d8a2f4..c952ef8 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 f04dc5c..fe0b494 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 b7b96df..4b99716 100644 --- a/clang/test/SemaTemplate/temp_class_spec_blocks.cpp +++ b/clang/test/SemaTemplate/temp_class_spec_blocks.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s -fblocks +// expected-no-diagnostics template struct is_unary_block { static const bool value = false; diff --git a/clang/test/SemaTemplate/template-class-traits.cpp b/clang/test/SemaTemplate/template-class-traits.cpp index 4710294..63ce8f4 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 96554e9..78cedd0 100644 --- a/clang/test/SemaTemplate/typo-dependent-name.cpp +++ b/clang/test/SemaTemplate/typo-dependent-name.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics template struct Base { diff --git a/clang/test/SemaTemplate/unresolved-construct.cpp b/clang/test/SemaTemplate/unresolved-construct.cpp index bb9ed8e..ef010fb 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: -- 2.7.4