forked from OSchip/llvm-project
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:
parent
04e79329d0
commit
475f9eabc2
|
@ -7,7 +7,7 @@
|
|||
|
||||
// CHECK: typedef void (*g)();
|
||||
typedef void (*g) ();
|
||||
// CHECK: enum {
|
||||
// CHECK: enum
|
||||
enum {
|
||||
k = -1
|
||||
};
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
// -------
|
||||
|
|
|
@ -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 };
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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)) { }
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue