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.

llvm-svn: 249670
This commit is contained in:
David Majnemer 2015-10-08 08:28:09 +00:00
parent 04e79329d0
commit 475f9eabc2
13 changed files with 15 additions and 15 deletions

View File

@ -7,7 +7,7 @@
// CHECK: typedef void (*g)();
typedef void (*g) ();
// CHECK: enum {
// CHECK: enum
enum {
k = -1
};

View 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);

View 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)
// -------

View 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 };

View 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

View 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();

View 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)) { }

View 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();

View 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"

View 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.

View 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;

View 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

View 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() {