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:
NAKAMURA Takumi 2012-09-12 10:45:40 +00:00
parent e413ad99ac
commit fcd16e36c8
13 changed files with 18 additions and 0 deletions

View File

@ -1,4 +1,5 @@
// RUN: %clang_cc1 -analyze -analyzer-checker=core,unix.Malloc,debug.ExprInspection -verify %s
// REQUIRES: LP64
void clang_analyzer_eval(bool);

View File

@ -1,4 +1,5 @@
// RUN: %clang_cc1 %s -emit-llvm -O1 -o -
// REQUIRES: LP64
typedef long intptr_t;
int test(void *b) {

View File

@ -1,4 +1,5 @@
// RUN: %clang_cc1 -Wno-error=return-type %s -emit-llvm-only
// REQUIRES: LP64
void test1(int x) {
switch (x) {

View File

@ -1,4 +1,5 @@
// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
// REQUIRES: LP64
struct S {
int A[2];

View File

@ -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);
}

View File

@ -1,4 +1,5 @@
// RUN: %clang_cc1 -emit-llvm -o %t %s
// REQUIRES: LP64
@interface Object
- (id) new;

View File

@ -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)}}

View File

@ -1,4 +1,5 @@
// RUN: %clang_cc1 -fsyntax-only -verify -pedantic %s
// REQUIRES: LP64
struct foo { int a, b; };

View File

@ -1,4 +1,5 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s
// REQUIRES: LP64
struct A {};

View File

@ -1,4 +1,5 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s
// REQUIRES: LP64
// ------------ not interpreted as C-style cast ------------

View File

@ -1,4 +1,6 @@
// RUN: %clang_cc1 -fsyntax-only -fshow-overloads=best -verify %s
// REQUIRES: LP64
struct yes;
struct no;

View File

@ -1,6 +1,7 @@
#include "nonnull.h"
// RUN: %clang_cc1 -fblocks -fsyntax-only -verify -Wno-objc-root-class %s
// REQUIRES: LP64
@class NSObject;

View File

@ -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()