]> granicus.if.org Git - clang/commitdiff
Update a few more tests in response to the MS ABI enum semantics
authorDavid Majnemer <david.majnemer@gmail.com>
Thu, 8 Oct 2015 08:28:09 +0000 (08:28 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Thu, 8 Oct 2015 08:28:09 +0000 (08:28 +0000)
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

13 files changed:
test/Sema/fn-ptr-as-fn-prototype.c
test/Sema/function-redecl.c
test/Sema/inline.c
test/Sema/short-enums.c
test/SemaCXX/ast-print.cpp
test/SemaCXX/conversion-function.cpp
test/SemaCXX/cxx1y-generic-lambdas.cpp
test/SemaCXX/overload-call.cpp
test/SemaCXX/underlying_type.cpp
test/SemaCXX/warn-sign-conversion.cpp
test/SemaObjC/blocks.m
test/SemaObjC/default-synthesize-1.m
test/SemaTemplate/instantiate-local-class.cpp

index 4b01b1316e1087f03c3dfe8473492c619f387ef4..0422f2b86ea9b0eeddab35a73b0368a677753487 100644 (file)
@@ -7,7 +7,7 @@
 
 // CHECK: typedef void (*g)();
 typedef void (*g) ();
-// CHECK: enum {
+// CHECK: enum
 enum {
   k = -1
 };
index 561f7fae6b90d8c39829b82ef65f51af1347220f..eb6e78595ae56d1bf59bbf54b3a11b527b336c49 100644 (file)
@@ -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);
index 8a3835b71ada3cda0daa06ae3c3e1e2558999228..eced058f8ddc1aab6da616b381a71d108d61213f 100644 (file)
@@ -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)
 // -------
index 9bf0064646a7cfe23cae2c8ad6e5a3e66c7b2e7b..464b09ee10544cb2bf85fa3ba1260c3920df2a5f 100644 (file)
@@ -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 };
index 059804c81a9aff21e4c5bad8af78d88b39b63184..39a52ab8d7e88adeab3d3175287e9250ca22a80a 100644 (file)
@@ -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
index 077e4d9f3cce13bb532255e990987006a121ff13..649f6b4dce94680a9999bdecb7a4d2bb715908f3 100644 (file)
@@ -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();
index c937c6728c2bf16d5ac8eed092b71147c9979637..3774e8d3834b6da6d9afe058702e87d27251a84f 100644 (file)
@@ -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)) { }
index 19ce14481f8efe2f7c9300f6bfdac604a9f39f55..7c6fe2b7e4e931e3ceb25b4bdd49d32a161e4aac 100644 (file)
@@ -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();
index 2a972b174e86f15826416bb0216122d4298358f2..61208c72af0486c69a5f90508d2b8a3f5594d1f3 100644 (file)
@@ -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"
 
index 746b1242fe1b91726e362265aa4fca05161fcd25..dcfb95b6b57deec9cbe41b56a35c098dea681f7e 100644 (file)
@@ -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.
index d6681d051de1af4919d3571a01920dfe614d374c..e26fb3c0cd3fd5363a8e3ea06e4fa1457716ad48 100644 (file)
@@ -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;
index 731aa863e103a9b0a7e83734f076f19b05b35c34..aa92e4a3ffcda778bea216ed2ee5eb4af1cc46fc 100644 (file)
@@ -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 
index c0ea6a0bc870bf9803a2266a2443e31a3923fe5a..7fdc6ce0c28eac61c226554b166cc500acc71814 100644 (file)
@@ -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() {