diff options
author | David Majnemer <david.majnemer@gmail.com> | 2015-10-08 06:31:22 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2015-10-08 06:31:22 +0000 |
commit | c10b8381f761ad7ff9a8c34b687b9320e07f9726 (patch) | |
tree | f66049f87c7e1797eb3f6f0ca383c6bd58b1dee1 | |
parent | da5168b7ce40521abe005f7af7918ea3fd23a615 (diff) | |
download | bcm5719-llvm-c10b8381f761ad7ff9a8c34b687b9320e07f9726.tar.gz bcm5719-llvm-c10b8381f761ad7ff9a8c34b687b9320e07f9726.zip |
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.
llvm-svn: 249660
-rw-r--r-- | clang/test/ASTMerge/codegen-exprs.c | 6 | ||||
-rw-r--r-- | clang/test/ASTMerge/exprs.c | 6 | ||||
-rw-r--r-- | clang/test/Analysis/PR2599.m | 2 | ||||
-rw-r--r-- | clang/test/Analysis/retain-release-gc-only.m | 2 | ||||
-rw-r--r-- | clang/test/Analysis/retain-release-region-store.m | 2 | ||||
-rw-r--r-- | clang/test/CXX/drs/dr0xx.cpp | 6 | ||||
-rw-r--r-- | clang/test/CXX/drs/dr3xx.cpp | 8 | ||||
-rw-r--r-- | clang/test/CXX/drs/dr4xx.cpp | 2 | ||||
-rw-r--r-- | clang/test/CXX/expr/expr.const/p5-0x.cpp | 2 | ||||
-rw-r--r-- | clang/test/CodeGen/2003-12-14-ExternInlineSupport.c | 3 | ||||
-rw-r--r-- | clang/test/CodeGen/volatile-1.c | 2 | ||||
-rw-r--r-- | clang/test/CodeGenCXX/inline-dllexport-member.cpp | 6 | ||||
-rw-r--r-- | clang/test/FixIt/format.m | 4 | ||||
-rw-r--r-- | clang/test/Modules/system_headers.m | 2 | ||||
-rw-r--r-- | clang/test/Parser/cxx0x-attributes.cpp | 2 | ||||
-rw-r--r-- | clang/test/Sema/attr-flag-enum.c | 2 | ||||
-rw-r--r-- | clang/test/Sema/bitfield.c | 2 | ||||
-rw-r--r-- | clang/test/Sema/cast-incomplete.c | 2 | ||||
-rw-r--r-- | clang/test/Sema/decl-in-prototype.c | 2 | ||||
-rw-r--r-- | clang/test/Sema/enum.c | 2 |
20 files changed, 33 insertions, 32 deletions
diff --git a/clang/test/ASTMerge/codegen-exprs.c b/clang/test/ASTMerge/codegen-exprs.c index 6c4a575d609..b5069f993be 100644 --- a/clang/test/ASTMerge/codegen-exprs.c +++ b/clang/test/ASTMerge/codegen-exprs.c @@ -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 diff --git a/clang/test/ASTMerge/exprs.c b/clang/test/ASTMerge/exprs.c index c82e6831f5c..7495bb6a874 100644 --- a/clang/test/ASTMerge/exprs.c +++ b/clang/test/ASTMerge/exprs.c @@ -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 diff --git a/clang/test/Analysis/PR2599.m b/clang/test/Analysis/PR2599.m index fb368e33f14..47dadbf8894 100644 --- a/clang/test/Analysis/PR2599.m +++ b/clang/test/Analysis/PR2599.m @@ -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; diff --git a/clang/test/Analysis/retain-release-gc-only.m b/clang/test/Analysis/retain-release-gc-only.m index 1a5ed34c9f3..26eb6e12be2 100644 --- a/clang/test/Analysis/retain-release-gc-only.m +++ b/clang/test/Analysis/retain-release-gc-only.m @@ -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. diff --git a/clang/test/Analysis/retain-release-region-store.m b/clang/test/Analysis/retain-release-region-store.m index 917381341a4..3f83fb58283 100644 --- a/clang/test/Analysis/retain-release-region-store.m +++ b/clang/test/Analysis/retain-release-region-store.m @@ -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 diff --git a/clang/test/CXX/drs/dr0xx.cpp b/clang/test/CXX/drs/dr0xx.cpp index dd0d4d17a8f..3bb6701b32e 100644 --- a/clang/test/CXX/drs/dr0xx.cpp +++ b/clang/test/CXX/drs/dr0xx.cpp @@ -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); } diff --git a/clang/test/CXX/drs/dr3xx.cpp b/clang/test/CXX/drs/dr3xx.cpp index c438fccebd6..a1c1c4ce613 100644 --- a/clang/test/CXX/drs/dr3xx.cpp +++ b/clang/test/CXX/drs/dr3xx.cpp @@ -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)) {} diff --git a/clang/test/CXX/drs/dr4xx.cpp b/clang/test/CXX/drs/dr4xx.cpp index bbe5ee6faa5..2a548e2eaba 100644 --- a/clang/test/CXX/drs/dr4xx.cpp +++ b/clang/test/CXX/drs/dr4xx.cpp @@ -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}} }; } diff --git a/clang/test/CXX/expr/expr.const/p5-0x.cpp b/clang/test/CXX/expr/expr.const/p5-0x.cpp index 0a4ac22d06d..079870947db 100644 --- a/clang/test/CXX/expr/expr.const/p5-0x.cpp +++ b/clang/test/CXX/expr/expr.const/p5-0x.cpp @@ -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 diff --git a/clang/test/CodeGen/2003-12-14-ExternInlineSupport.c b/clang/test/CodeGen/2003-12-14-ExternInlineSupport.c index eb3859c3809..cf01fd1ecbd 100644 --- a/clang/test/CodeGen/2003-12-14-ExternInlineSupport.c +++ b/clang/test/CodeGen/2003-12-14-ExternInlineSupport.c @@ -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 diff --git a/clang/test/CodeGen/volatile-1.c b/clang/test/CodeGen/volatile-1.c index f63274b37f6..6912da3d932 100644 --- a/clang/test/CodeGen/volatile-1.c +++ b/clang/test/CodeGen/volatile-1.c @@ -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; diff --git a/clang/test/CodeGenCXX/inline-dllexport-member.cpp b/clang/test/CodeGenCXX/inline-dllexport-member.cpp index fa78d068001..2160f32e0b4 100644 --- a/clang/test/CodeGenCXX/inline-dllexport-member.cpp +++ b/clang/test/CodeGenCXX/inline-dllexport-member.cpp @@ -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" diff --git a/clang/test/FixIt/format.m b/clang/test/FixIt/format.m index d07ee363b4a..7af2cfdaf71 100644 --- a/clang/test/FixIt/format.m +++ b/clang/test/FixIt/format.m @@ -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 *, ...); diff --git a/clang/test/Modules/system_headers.m b/clang/test/Modules/system_headers.m index 165e8e86640..b69ef3d3c9e 100644 --- a/clang/test/Modules/system_headers.m +++ b/clang/test/Modules/system_headers.m @@ -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; diff --git a/clang/test/Parser/cxx0x-attributes.cpp b/clang/test/Parser/cxx0x-attributes.cpp index 7eec5761ea0..d803812efd3 100644 --- a/clang/test/Parser/cxx0x-attributes.cpp +++ b/clang/test/Parser/cxx0x-attributes.cpp @@ -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 { diff --git a/clang/test/Sema/attr-flag-enum.c b/clang/test/Sema/attr-flag-enum.c index a53c1dc8e7d..ae3e3ad5ab9 100644 --- a/clang/test/Sema/attr-flag-enum.c +++ b/clang/test/Sema/attr-flag-enum.c @@ -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, diff --git a/clang/test/Sema/bitfield.c b/clang/test/Sema/bitfield.c index ba8460d3f6c..60a6fcf10a5 100644 --- a/clang/test/Sema/bitfield.c +++ b/clang/test/Sema/bitfield.c @@ -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'}} diff --git a/clang/test/Sema/cast-incomplete.c b/clang/test/Sema/cast-incomplete.c index dd10e00d444..ce20dfbf8bb 100644 --- a/clang/test/Sema/cast-incomplete.c +++ b/clang/test/Sema/cast-incomplete.c @@ -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}} diff --git a/clang/test/Sema/decl-in-prototype.c b/clang/test/Sema/decl-in-prototype.c index 4f581aa54e5..8cdbdf2fcdf 100644 --- a/clang/test/Sema/decl-in-prototype.c +++ b/clang/test/Sema/decl-in-prototype.c @@ -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; diff --git a/clang/test/Sema/enum.c b/clang/test/Sema/enum.c index 13b88c948c8..3546bfe48fc 100644 --- a/clang/test/Sema/enum.c +++ b/clang/test/Sema/enum.c @@ -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 }; |