Author: majnemer Date: Thu Oct 8 01:31:22 2015 New Revision: 249660 URL: http://llvm.org/viewvc/llvm-project?rev=249660&view=rev Log: Update tests touched by r249656
These test updates almost exclusively around the change in behavior around enum: enums without a definition are considered incomplete except when targeting MSVC ABIs. Since these tests are interested in the 'incomplete-enum' behavior, restrict them to %itanium_abi_triple. Modified: cfe/trunk/test/ASTMerge/codegen-exprs.c cfe/trunk/test/ASTMerge/exprs.c cfe/trunk/test/Analysis/PR2599.m cfe/trunk/test/Analysis/retain-release-gc-only.m cfe/trunk/test/Analysis/retain-release-region-store.m cfe/trunk/test/CXX/drs/dr0xx.cpp cfe/trunk/test/CXX/drs/dr3xx.cpp cfe/trunk/test/CXX/drs/dr4xx.cpp cfe/trunk/test/CXX/expr/expr.const/p5-0x.cpp cfe/trunk/test/CodeGen/2003-12-14-ExternInlineSupport.c cfe/trunk/test/CodeGen/volatile-1.c cfe/trunk/test/CodeGenCXX/inline-dllexport-member.cpp cfe/trunk/test/FixIt/format.m cfe/trunk/test/Modules/system_headers.m cfe/trunk/test/Parser/cxx0x-attributes.cpp cfe/trunk/test/Sema/attr-flag-enum.c cfe/trunk/test/Sema/bitfield.c cfe/trunk/test/Sema/cast-incomplete.c cfe/trunk/test/Sema/decl-in-prototype.c cfe/trunk/test/Sema/enum.c Modified: cfe/trunk/test/ASTMerge/codegen-exprs.c URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/ASTMerge/codegen-exprs.c?rev=249660&r1=249659&r2=249660&view=diff ============================================================================== --- cfe/trunk/test/ASTMerge/codegen-exprs.c (original) +++ cfe/trunk/test/ASTMerge/codegen-exprs.c Thu Oct 8 01:31:22 2015 @@ -1,5 +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 -emit-obj -o /dev/null -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only -verify %s +// RUN: %clang_cc1 -triple %itanium_abi_triple -emit-pch -o %t.1.ast %S/Inputs/exprs1.c +// RUN: %clang_cc1 -triple %itanium_abi_triple -emit-pch -o %t.2.ast %S/Inputs/exprs2.c +// RUN: %clang_cc1 -triple %itanium_abi_triple -emit-obj -o /dev/null -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only -verify %s // expected-no-diagnostics Modified: cfe/trunk/test/ASTMerge/exprs.c URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/ASTMerge/exprs.c?rev=249660&r1=249659&r2=249660&view=diff ============================================================================== --- cfe/trunk/test/ASTMerge/exprs.c (original) +++ cfe/trunk/test/ASTMerge/exprs.c Thu Oct 8 01:31:22 2015 @@ -1,5 +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 +// RUN: %clang_cc1 -triple %itanium_abi_triple -emit-pch -o %t.1.ast %S/Inputs/exprs1.c +// RUN: %clang_cc1 -triple %itanium_abi_triple -emit-pch -o %t.2.ast %S/Inputs/exprs2.c +// RUN: %clang_cc1 -triple %itanium_abi_triple -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only -verify %s // expected-no-diagnostics Modified: cfe/trunk/test/Analysis/PR2599.m URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/PR2599.m?rev=249660&r1=249659&r2=249660&view=diff ============================================================================== --- cfe/trunk/test/Analysis/PR2599.m (original) +++ cfe/trunk/test/Analysis/PR2599.m Thu Oct 8 01:31:22 2015 @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -analyze -analyzer-checker=core,osx.cocoa.RetainCount,alpha.core -analyzer-constraints=range -analyzer-store=region -fobjc-gc -verify %s +// RUN: %clang_cc1 -triple %itanium_abi_triple -analyze -analyzer-checker=core,osx.cocoa.RetainCount,alpha.core -analyzer-constraints=range -analyzer-store=region -fobjc-gc -verify %s typedef const void * CFTypeRef; typedef const struct __CFString * CFStringRef; Modified: cfe/trunk/test/Analysis/retain-release-gc-only.m URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/retain-release-gc-only.m?rev=249660&r1=249659&r2=249660&view=diff ============================================================================== --- cfe/trunk/test/Analysis/retain-release-gc-only.m (original) +++ cfe/trunk/test/Analysis/retain-release-gc-only.m Thu Oct 8 01:31:22 2015 @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -analyze -analyzer-checker=core,osx.cocoa.RetainCount,osx.cocoa.NSAutoreleasePool -analyzer-store=region -fobjc-gc-only -fblocks -verify -Wno-objc-root-class %s +// RUN: %clang_cc1 -triple %itanium_abi_triple -analyze -analyzer-checker=core,osx.cocoa.RetainCount,osx.cocoa.NSAutoreleasePool -analyzer-store=region -fobjc-gc-only -fblocks -verify -Wno-objc-root-class %s //===----------------------------------------------------------------------===// // Header stuff. Modified: cfe/trunk/test/Analysis/retain-release-region-store.m URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/retain-release-region-store.m?rev=249660&r1=249659&r2=249660&view=diff ============================================================================== --- cfe/trunk/test/Analysis/retain-release-region-store.m (original) +++ cfe/trunk/test/Analysis/retain-release-region-store.m Thu Oct 8 01:31:22 2015 @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -analyze -analyzer-checker=core,osx.cocoa.RetainCount -analyzer-store=region -analyzer-max-loop 6 -verify %s +// RUN: %clang_cc1 -triple %itanium_abi_triple -analyze -analyzer-checker=core,osx.cocoa.RetainCount -analyzer-store=region -analyzer-max-loop 6 -verify %s //===----------------------------------------------------------------------===// // The following code is reduced using delta-debugging from Modified: cfe/trunk/test/CXX/drs/dr0xx.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/drs/dr0xx.cpp?rev=249660&r1=249659&r2=249660&view=diff ============================================================================== --- cfe/trunk/test/CXX/drs/dr0xx.cpp (original) +++ cfe/trunk/test/CXX/drs/dr0xx.cpp Thu Oct 8 01:31:22 2015 @@ -1,7 +1,7 @@ // RUN: %clang_cc1 -std=c++98 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors -Wno-bind-to-temporary-copy -// RUN: %clang_cc1 -std=c++11 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors -// RUN: %clang_cc1 -std=c++14 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors -// RUN: %clang_cc1 -std=c++1z %s -verify -fexceptions -fcxx-exceptions -pedantic-errors +// RUN: %clang_cc1 -std=c++11 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors -triple %itanium_abi_triple +// RUN: %clang_cc1 -std=c++14 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors -triple %itanium_abi_triple +// RUN: %clang_cc1 -std=c++1z %s -verify -fexceptions -fcxx-exceptions -pedantic-errors -triple %itanium_abi_triple namespace dr1 { // dr1: no namespace X { extern "C" void dr1_f(int a = 1); } Modified: cfe/trunk/test/CXX/drs/dr3xx.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/drs/dr3xx.cpp?rev=249660&r1=249659&r2=249660&view=diff ============================================================================== --- cfe/trunk/test/CXX/drs/dr3xx.cpp (original) +++ cfe/trunk/test/CXX/drs/dr3xx.cpp Thu Oct 8 01:31:22 2015 @@ -1,7 +1,7 @@ -// RUN: %clang_cc1 -std=c++98 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors -// RUN: %clang_cc1 -std=c++11 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors -// RUN: %clang_cc1 -std=c++14 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors -// RUN: %clang_cc1 -std=c++1z %s -verify -fexceptions -fcxx-exceptions -pedantic-errors +// RUN: %clang_cc1 -triple %itanium_abi_triple -std=c++98 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors +// RUN: %clang_cc1 -triple %itanium_abi_triple -std=c++11 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors +// RUN: %clang_cc1 -triple %itanium_abi_triple -std=c++14 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors +// RUN: %clang_cc1 -triple %itanium_abi_triple -std=c++1z %s -verify -fexceptions -fcxx-exceptions -pedantic-errors namespace dr300 { // dr300: yes template<typename R, typename A> void f(R (&)(A)) {} Modified: cfe/trunk/test/CXX/drs/dr4xx.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/drs/dr4xx.cpp?rev=249660&r1=249659&r2=249660&view=diff ============================================================================== --- cfe/trunk/test/CXX/drs/dr4xx.cpp (original) +++ cfe/trunk/test/CXX/drs/dr4xx.cpp Thu Oct 8 01:31:22 2015 @@ -659,7 +659,7 @@ namespace dr457 { // dr457: yes enum E { ea = a, - eb = b // expected-error {{not an integral constant}} expected-note {{read of volatile-qualified}} + eb = b // expected-error {{constant}} expected-note {{read of volatile-qualified}} }; } Modified: cfe/trunk/test/CXX/expr/expr.const/p5-0x.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/expr/expr.const/p5-0x.cpp?rev=249660&r1=249659&r2=249660&view=diff ============================================================================== --- cfe/trunk/test/CXX/expr/expr.const/p5-0x.cpp (original) +++ cfe/trunk/test/CXX/expr/expr.const/p5-0x.cpp Thu Oct 8 01:31:22 2015 @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s +// RUN: %clang_cc1 -triple %itanium_abi_triple -fsyntax-only -std=c++11 -verify %s // If an expression of literal class type is used in a context where an integral // constant expression is required, then that class type shall have a single Modified: cfe/trunk/test/CodeGen/2003-12-14-ExternInlineSupport.c URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/2003-12-14-ExternInlineSupport.c?rev=249660&r1=249659&r2=249660&view=diff ============================================================================== --- cfe/trunk/test/CodeGen/2003-12-14-ExternInlineSupport.c (original) +++ cfe/trunk/test/CodeGen/2003-12-14-ExternInlineSupport.c Thu Oct 8 01:31:22 2015 @@ -1,3 +1,4 @@ -// RUN: %clang_cc1 -std=gnu89 %s -emit-llvm -o - | not grep dead_function +// RUN: %clang_cc1 -triple %itanium_abi_triple -std=gnu89 %s -emit-llvm -o - | FileCheck %s extern __inline__ void dead_function() {} +// CHECK-NOT: dead_function Modified: cfe/trunk/test/CodeGen/volatile-1.c URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/volatile-1.c?rev=249660&r1=249659&r2=249660&view=diff ============================================================================== --- cfe/trunk/test/CodeGen/volatile-1.c (original) +++ cfe/trunk/test/CodeGen/volatile-1.c Thu Oct 8 01:31:22 2015 @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -Wno-return-type -Wno-unused-value -emit-llvm %s -o - | FileCheck %s +// RUN: %clang_cc1 -triple %itanium_abi_triple -Wno-return-type -Wno-unused-value -emit-llvm %s -o - | FileCheck %s // CHECK: @i = common global [[INT:i[0-9]+]] 0 volatile int i, j, k; Modified: cfe/trunk/test/CodeGenCXX/inline-dllexport-member.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/inline-dllexport-member.cpp?rev=249660&r1=249659&r2=249660&view=diff ============================================================================== --- cfe/trunk/test/CodeGenCXX/inline-dllexport-member.cpp (original) +++ cfe/trunk/test/CodeGenCXX/inline-dllexport-member.cpp Thu Oct 8 01:31:22 2015 @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -triple i686-windows-gnu -fms-compatibility -debug-info-kind=limited -emit-llvm %s -o - \ +// RUN: %clang_cc1 -triple i686-windows-win32 -fms-extensions -debug-info-kind=limited -emit-llvm %s -o - \ // RUN: | FileCheck %s struct __declspec(dllexport) s { @@ -6,6 +6,6 @@ struct __declspec(dllexport) s { }; // CHECK: ![[SCOPE:[0-9]+]] = distinct !DICompileUnit( -// CHECK: !DIGlobalVariable(name: "ui", linkageName: "_ZN1s2uiE", scope: ![[SCOPE]], -// CHECK-SAME: variable: i32* @_ZN1s2uiE +// CHECK: !DIGlobalVariable(name: "ui", linkageName: "\01?ui@s@@2IB", scope: ![[SCOPE]], +// CHECK-SAME: variable: i32* @"\01?ui@s@@2IB" Modified: cfe/trunk/test/FixIt/format.m URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/FixIt/format.m?rev=249660&r1=249659&r2=249660&view=diff ============================================================================== --- cfe/trunk/test/FixIt/format.m (original) +++ cfe/trunk/test/FixIt/format.m Thu Oct 8 01:31:22 2015 @@ -1,5 +1,5 @@ -// RUN: %clang_cc1 -fsyntax-only -fblocks -verify %s -// RUN: %clang_cc1 -fdiagnostics-parseable-fixits -fblocks %s 2>&1 | FileCheck %s +// RUN: %clang_cc1 -triple %itanium_abi_triple -fsyntax-only -fblocks -verify %s +// RUN: %clang_cc1 -triple %itanium_abi_triple -fdiagnostics-parseable-fixits -fblocks %s 2>&1 | FileCheck %s @class NSString; extern void NSLog(NSString *, ...); Modified: cfe/trunk/test/Modules/system_headers.m URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/system_headers.m?rev=249660&r1=249659&r2=249660&view=diff ============================================================================== --- cfe/trunk/test/Modules/system_headers.m (original) +++ cfe/trunk/test/Modules/system_headers.m Thu Oct 8 01:31:22 2015 @@ -1,7 +1,7 @@ // Test that system-headerness works for building modules. // RUN: rm -rf %t -// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/cache -isystem %S/Inputs -pedantic -Werror %s -verify -std=c11 +// RUN: %clang_cc1 -triple %itanium_abi_triple -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/cache -isystem %S/Inputs -pedantic -Werror %s -verify -std=c11 // expected-no-diagnostics @import warning; Modified: cfe/trunk/test/Parser/cxx0x-attributes.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/cxx0x-attributes.cpp?rev=249660&r1=249659&r2=249660&view=diff ============================================================================== --- cfe/trunk/test/Parser/cxx0x-attributes.cpp (original) +++ cfe/trunk/test/Parser/cxx0x-attributes.cpp Thu Oct 8 01:31:22 2015 @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fcxx-exceptions -fexceptions -fsyntax-only -verify -std=c++11 -Wc++14-compat %s +// RUN: %clang_cc1 -triple %itanium_abi_triple -fcxx-exceptions -fexceptions -fsyntax-only -verify -std=c++11 -Wc++14-compat %s // Need std::initializer_list namespace std { Modified: cfe/trunk/test/Sema/attr-flag-enum.c URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/attr-flag-enum.c?rev=249660&r1=249659&r2=249660&view=diff ============================================================================== --- cfe/trunk/test/Sema/attr-flag-enum.c (original) +++ cfe/trunk/test/Sema/attr-flag-enum.c Thu Oct 8 01:31:22 2015 @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -verify -fsyntax-only -std=c11 -Wassign-enum %s +// RUN: %clang_cc1 -triple %itanium_abi_triple -verify -fsyntax-only -std=c11 -Wassign-enum %s enum __attribute__((flag_enum)) flag { ea = 0x1, Modified: cfe/trunk/test/Sema/bitfield.c URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/bitfield.c?rev=249660&r1=249659&r2=249660&view=diff ============================================================================== --- cfe/trunk/test/Sema/bitfield.c (original) +++ cfe/trunk/test/Sema/bitfield.c Thu Oct 8 01:31:22 2015 @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 %s -fsyntax-only -verify -std=c11 -Wno-unused-value +// RUN: %clang_cc1 -triple %itanium_abi_triple %s -fsyntax-only -verify -std=c11 -Wno-unused-value enum e0; // expected-note{{forward declaration of 'enum e0'}} Modified: cfe/trunk/test/Sema/cast-incomplete.c URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/cast-incomplete.c?rev=249660&r1=249659&r2=249660&view=diff ============================================================================== --- cfe/trunk/test/Sema/cast-incomplete.c (original) +++ cfe/trunk/test/Sema/cast-incomplete.c Thu Oct 8 01:31:22 2015 @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fsyntax-only %s -verify +// RUN: %clang_cc1 -triple %itanium_abi_triple -fsyntax-only %s -verify // PR5692 enum x; // expected-note {{forward declaration}} Modified: cfe/trunk/test/Sema/decl-in-prototype.c URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/decl-in-prototype.c?rev=249660&r1=249659&r2=249660&view=diff ============================================================================== --- cfe/trunk/test/Sema/decl-in-prototype.c (original) +++ cfe/trunk/test/Sema/decl-in-prototype.c Thu Oct 8 01:31:22 2015 @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fsyntax-only -verify %s +// RUN: %clang_cc1 -triple %itanium_abi_triple -fsyntax-only -verify %s const int AA = 5; Modified: cfe/trunk/test/Sema/enum.c URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/enum.c?rev=249660&r1=249659&r2=249660&view=diff ============================================================================== --- cfe/trunk/test/Sema/enum.c (original) +++ cfe/trunk/test/Sema/enum.c Thu Oct 8 01:31:22 2015 @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 %s -fsyntax-only -verify -pedantic +// RUN: %clang_cc1 -triple %itanium_abi_triple %s -fsyntax-only -verify -pedantic enum e {A, B = 42LL << 32, // expected-warning {{ISO C restricts enumerator values to range of 'int'}} C = -4, D = 12456 }; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits