diff options
author | David Majnemer <david.majnemer@gmail.com> | 2015-10-08 08:28:09 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2015-10-08 08:28:09 +0000 |
commit | 8ec91972332f5163bcdfce4198609833632243ad (patch) | |
tree | e70c9846c3194ce50ed4d6d758755d84c2a0f0f4 /test | |
parent | 1d63a6b8d6599722c2fc7747d72094a3eacb49ab (diff) | |
download | clang-8ec91972332f5163bcdfce4198609833632243ad.tar.gz |
Update a few more tests in response to the MS ABI enum semantics
Our self hosting buildbots found a few more tests which weren't updated
to reflect that the enum semantics are part of the Microsoft ABI.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@249670 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Sema/fn-ptr-as-fn-prototype.c | 2 | ||||
-rw-r--r-- | test/Sema/function-redecl.c | 2 | ||||
-rw-r--r-- | test/Sema/inline.c | 2 | ||||
-rw-r--r-- | test/Sema/short-enums.c | 2 | ||||
-rw-r--r-- | test/SemaCXX/ast-print.cpp | 4 | ||||
-rw-r--r-- | test/SemaCXX/conversion-function.cpp | 2 | ||||
-rw-r--r-- | test/SemaCXX/cxx1y-generic-lambdas.cpp | 2 | ||||
-rw-r--r-- | test/SemaCXX/overload-call.cpp | 2 | ||||
-rw-r--r-- | test/SemaCXX/underlying_type.cpp | 2 | ||||
-rw-r--r-- | test/SemaCXX/warn-sign-conversion.cpp | 2 | ||||
-rw-r--r-- | test/SemaObjC/blocks.m | 2 | ||||
-rw-r--r-- | test/SemaObjC/default-synthesize-1.m | 2 | ||||
-rw-r--r-- | test/SemaTemplate/instantiate-local-class.cpp | 4 |
13 files changed, 15 insertions, 15 deletions
diff --git a/test/Sema/fn-ptr-as-fn-prototype.c b/test/Sema/fn-ptr-as-fn-prototype.c index 4b01b1316e..0422f2b86e 100644 --- a/test/Sema/fn-ptr-as-fn-prototype.c +++ b/test/Sema/fn-ptr-as-fn-prototype.c @@ -7,7 +7,7 @@ // CHECK: typedef void (*g)(); typedef void (*g) (); -// CHECK: enum { +// CHECK: enum enum { k = -1 }; diff --git a/test/Sema/function-redecl.c b/test/Sema/function-redecl.c index 561f7fae6b..eb6e78595a 100644 --- a/test/Sema/function-redecl.c +++ b/test/Sema/function-redecl.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fsyntax-only -verify %s +// RUN: %clang_cc1 -triple %itanium_abi_triple -fsyntax-only -verify %s // PR3588 void g0(int, int); diff --git a/test/Sema/inline.c b/test/Sema/inline.c index 8a3835b71a..eced058f8d 100644 --- a/test/Sema/inline.c +++ b/test/Sema/inline.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fsyntax-only -verify %s +// RUN: %clang_cc1 -triple %itanium_abi_triple -fsyntax-only -verify %s #if defined(INCLUDE) // ------- diff --git a/test/Sema/short-enums.c b/test/Sema/short-enums.c index 9bf0064646..464b09ee10 100644 --- a/test/Sema/short-enums.c +++ b/test/Sema/short-enums.c @@ -1,5 +1,5 @@ // RUN: not %clang_cc1 -fsyntax-only %s -verify -// RUN: %clang_cc1 -fshort-enums -fsyntax-only %s -verify +// RUN: %clang_cc1 -triple %itanium_abi_triple -fshort-enums -fsyntax-only %s -verify // expected-no-diagnostics enum x { A }; diff --git a/test/SemaCXX/ast-print.cpp b/test/SemaCXX/ast-print.cpp index 059804c81a..39a52ab8d7 100644 --- a/test/SemaCXX/ast-print.cpp +++ b/test/SemaCXX/ast-print.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -ast-print %s -std=gnu++11 | FileCheck %s +// RUN: %clang_cc1 -triple %ms_abi_triple -ast-print %s -std=gnu++11 | FileCheck %s // CHECK: r; // CHECK-NEXT: (r->method()); @@ -66,7 +66,7 @@ template <class S> void test7() template <typename T> void test8(T t) { t.~T(); } -// CHECK: enum E { +// CHECK: enum E // CHECK-NEXT: A, // CHECK-NEXT: B, // CHECK-NEXT: C diff --git a/test/SemaCXX/conversion-function.cpp b/test/SemaCXX/conversion-function.cpp index 077e4d9f3c..649f6b4dce 100644 --- a/test/SemaCXX/conversion-function.cpp +++ b/test/SemaCXX/conversion-function.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fsyntax-only -Wbind-to-temporary-copy -verify %s +// RUN: %clang_cc1 -triple %itanium_abi_triple -fsyntax-only -Wbind-to-temporary-copy -verify %s class X { public: operator bool(); diff --git a/test/SemaCXX/cxx1y-generic-lambdas.cpp b/test/SemaCXX/cxx1y-generic-lambdas.cpp index c937c6728c..3774e8d383 100644 --- a/test/SemaCXX/cxx1y-generic-lambdas.cpp +++ b/test/SemaCXX/cxx1y-generic-lambdas.cpp @@ -859,7 +859,7 @@ namespace ns1 { struct X1 { struct X2 { enum { E = [](auto i) { return i; }(3) }; //expected-error{{inside of a constant expression}}\ - //expected-error{{not an integral constant}}\ + //expected-error{{constant}}\ //expected-note{{non-literal type}} int L = ([] (int i) { return i; })(2); void foo(int i = ([] (int i) { return i; })(2)) { } diff --git a/test/SemaCXX/overload-call.cpp b/test/SemaCXX/overload-call.cpp index 19ce14481f..7c6fe2b7e4 100644 --- a/test/SemaCXX/overload-call.cpp +++ b/test/SemaCXX/overload-call.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -pedantic -verify %s +// RUN: %clang_cc1 -triple %itanium_abi_triple -pedantic -verify %s int* f(int) { return 0; } float* f(float) { return 0; } void f(); diff --git a/test/SemaCXX/underlying_type.cpp b/test/SemaCXX/underlying_type.cpp index 2a972b174e..61208c72af 100644 --- a/test/SemaCXX/underlying_type.cpp +++ b/test/SemaCXX/underlying_type.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -ffreestanding -fsyntax-only -verify -std=c++11 %s +// RUN: %clang_cc1 -triple %itanium_abi_triple -ffreestanding -fsyntax-only -verify -std=c++11 %s #include "limits.h" diff --git a/test/SemaCXX/warn-sign-conversion.cpp b/test/SemaCXX/warn-sign-conversion.cpp index 746b1242fe..dcfb95b6b5 100644 --- a/test/SemaCXX/warn-sign-conversion.cpp +++ b/test/SemaCXX/warn-sign-conversion.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -verify -fsyntax-only -Wsign-conversion %s +// RUN: %clang_cc1 -triple %itanium_abi_triple -verify -fsyntax-only -Wsign-conversion %s // NOTE: When a 'enumeral mismatch' warning is implemented then expect several // of the following cases to be impacted. diff --git a/test/SemaObjC/blocks.m b/test/SemaObjC/blocks.m index d6681d051d..e26fb3c0cd 100644 --- a/test/SemaObjC/blocks.m +++ b/test/SemaObjC/blocks.m @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fsyntax-only -verify -fblocks %s +// RUN: %clang_cc1 -triple %itanium_abi_triple -fsyntax-only -verify -fblocks %s #define bool _Bool @protocol NSObject; diff --git a/test/SemaObjC/default-synthesize-1.m b/test/SemaObjC/default-synthesize-1.m index 731aa863e1..aa92e4a3ff 100644 --- a/test/SemaObjC/default-synthesize-1.m +++ b/test/SemaObjC/default-synthesize-1.m @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fsyntax-only -Wobjc-missing-property-synthesis -verify -Wno-objc-root-class %s +// RUN: %clang_cc1 -triple %itanium_abi_triple -fsyntax-only -Wobjc-missing-property-synthesis -verify -Wno-objc-root-class %s // rdar://11295716 @interface NSObject diff --git a/test/SemaTemplate/instantiate-local-class.cpp b/test/SemaTemplate/instantiate-local-class.cpp index c0ea6a0bc8..7fdc6ce0c2 100644 --- a/test/SemaTemplate/instantiate-local-class.cpp +++ b/test/SemaTemplate/instantiate-local-class.cpp @@ -1,5 +1,5 @@ -// RUN: %clang_cc1 -verify -std=c++11 %s -// RUN: %clang_cc1 -verify -std=c++11 -fdelayed-template-parsing %s +// RUN: %clang_cc1 -triple %itanium_abi_triple -verify -std=c++11 %s +// RUN: %clang_cc1 -triple %itanium_abi_triple -verify -std=c++11 -fdelayed-template-parsing %s template<typename T> void f0() { |