forked from OSchip/llvm-project
clang/test: [PR8833] Introduce the feature "LP64" to suppress LLP64-incompatible tests.
I think some of them could be rewritten to fit also LLP64. llvm-svn: 163699
This commit is contained in:
parent
e413ad99ac
commit
fcd16e36c8
|
@ -1,4 +1,5 @@
|
|||
// RUN: %clang_cc1 -analyze -analyzer-checker=core,unix.Malloc,debug.ExprInspection -verify %s
|
||||
// REQUIRES: LP64
|
||||
|
||||
void clang_analyzer_eval(bool);
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// RUN: %clang_cc1 %s -emit-llvm -O1 -o -
|
||||
// REQUIRES: LP64
|
||||
|
||||
typedef long intptr_t;
|
||||
int test(void *b) {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// RUN: %clang_cc1 -Wno-error=return-type %s -emit-llvm-only
|
||||
// REQUIRES: LP64
|
||||
|
||||
void test1(int x) {
|
||||
switch (x) {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
|
||||
// REQUIRES: LP64
|
||||
|
||||
struct S {
|
||||
int A[2];
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// RUN: %clang_cc1 -emit-llvm -o - %s -std=c++11
|
||||
// REQUIRES: LP64
|
||||
|
||||
void *f1(unsigned long l) {
|
||||
return reinterpret_cast<void *>(l);
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// RUN: %clang_cc1 -emit-llvm -o %t %s
|
||||
// REQUIRES: LP64
|
||||
|
||||
@interface Object
|
||||
- (id) new;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only -pedantic -verify %s
|
||||
// REQUIRES: LP64
|
||||
|
||||
extern int foof() = 1; // expected-error{{illegal initializer (only variables can be initialized)}}
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only -verify -pedantic %s
|
||||
// REQUIRES: LP64
|
||||
|
||||
struct foo { int a, b; };
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
||||
// REQUIRES: LP64
|
||||
|
||||
struct A {};
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
||||
// REQUIRES: LP64
|
||||
|
||||
// ------------ not interpreted as C-style cast ------------
|
||||
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only -fshow-overloads=best -verify %s
|
||||
// REQUIRES: LP64
|
||||
|
||||
struct yes;
|
||||
struct no;
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#include "nonnull.h"
|
||||
|
||||
// RUN: %clang_cc1 -fblocks -fsyntax-only -verify -Wno-objc-root-class %s
|
||||
// REQUIRES: LP64
|
||||
|
||||
@class NSObject;
|
||||
|
||||
|
|
|
@ -226,6 +226,10 @@ if platform.system() not in ['Windows'] or lit.getBashPath() != '':
|
|||
if platform.system() not in ['Windows']:
|
||||
config.available_features.add('ansi-escape-sequences')
|
||||
|
||||
# [PR8833] LLP64-incompatible tests
|
||||
if not re.match(r'^x86_64.*-(win32|mingw32)$', config.target_triple):
|
||||
config.available_features.add('LP64')
|
||||
|
||||
# Registered Targets
|
||||
def get_llc_props(tool):
|
||||
set_of_targets = set()
|
||||
|
|
Loading…
Reference in New Issue