summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2012-09-12 10:45:40 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2012-09-12 10:45:40 +0000
commitfcd16e36c80ecf929179f5ce085ae0200878139e (patch)
treeff56b6d0fdb1099e9681f3630dc98e8af892de20 /clang/test
parente413ad99ac682b3aa0b917352898818b16e50cb2 (diff)
downloadbcm5719-llvm-fcd16e36c80ecf929179f5ce085ae0200878139e.tar.gz
bcm5719-llvm-fcd16e36c80ecf929179f5ce085ae0200878139e.zip
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
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Analysis/cxx-crashes.cpp1
-rw-r--r--clang/test/CodeGen/2008-12-23-AsmIntPointerTie.c1
-rw-r--r--clang/test/CodeGen/statements.c1
-rw-r--r--clang/test/CodeGenCXX/2005-01-03-StaticInitializers.cpp1
-rw-r--r--clang/test/CodeGenCXX/reinterpret-cast.cpp2
-rw-r--r--clang/test/CodeGenObjC/newproperty-nested-synthesis-1.m1
-rw-r--r--clang/test/Sema/array-init.c1
-rw-r--r--clang/test/Sema/compound-literal.c1
-rw-r--r--clang/test/SemaCXX/cstyle-cast.cpp1
-rw-r--r--clang/test/SemaCXX/functional-cast.cpp1
-rw-r--r--clang/test/SemaCXX/overloaded-builtin-operators.cpp2
-rw-r--r--clang/test/SemaObjC/nonnull.m1
-rw-r--r--clang/test/lit.cfg4
13 files changed, 18 insertions, 0 deletions
diff --git a/clang/test/Analysis/cxx-crashes.cpp b/clang/test/Analysis/cxx-crashes.cpp
index 8912bf68de3..e3f812540d0 100644
--- a/clang/test/Analysis/cxx-crashes.cpp
+++ b/clang/test/Analysis/cxx-crashes.cpp
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -analyze -analyzer-checker=core,unix.Malloc,debug.ExprInspection -verify %s
+// REQUIRES: LP64
void clang_analyzer_eval(bool);
diff --git a/clang/test/CodeGen/2008-12-23-AsmIntPointerTie.c b/clang/test/CodeGen/2008-12-23-AsmIntPointerTie.c
index df646b7801f..04b285e6866 100644
--- a/clang/test/CodeGen/2008-12-23-AsmIntPointerTie.c
+++ b/clang/test/CodeGen/2008-12-23-AsmIntPointerTie.c
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 %s -emit-llvm -O1 -o -
+// REQUIRES: LP64
typedef long intptr_t;
int test(void *b) {
diff --git a/clang/test/CodeGen/statements.c b/clang/test/CodeGen/statements.c
index e2bbb5a90a8..5affb9a8351 100644
--- a/clang/test/CodeGen/statements.c
+++ b/clang/test/CodeGen/statements.c
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -Wno-error=return-type %s -emit-llvm-only
+// REQUIRES: LP64
void test1(int x) {
switch (x) {
diff --git a/clang/test/CodeGenCXX/2005-01-03-StaticInitializers.cpp b/clang/test/CodeGenCXX/2005-01-03-StaticInitializers.cpp
index 875c412c6b4..1c9d1202afb 100644
--- a/clang/test/CodeGenCXX/2005-01-03-StaticInitializers.cpp
+++ b/clang/test/CodeGenCXX/2005-01-03-StaticInitializers.cpp
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
+// REQUIRES: LP64
struct S {
int A[2];
diff --git a/clang/test/CodeGenCXX/reinterpret-cast.cpp b/clang/test/CodeGenCXX/reinterpret-cast.cpp
index dafa67529f7..63c5a2adc64 100644
--- a/clang/test/CodeGenCXX/reinterpret-cast.cpp
+++ b/clang/test/CodeGenCXX/reinterpret-cast.cpp
@@ -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);
}
diff --git a/clang/test/CodeGenObjC/newproperty-nested-synthesis-1.m b/clang/test/CodeGenObjC/newproperty-nested-synthesis-1.m
index 4831c22463b..aa0c8c92397 100644
--- a/clang/test/CodeGenObjC/newproperty-nested-synthesis-1.m
+++ b/clang/test/CodeGenObjC/newproperty-nested-synthesis-1.m
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -emit-llvm -o %t %s
+// REQUIRES: LP64
@interface Object
- (id) new;
diff --git a/clang/test/Sema/array-init.c b/clang/test/Sema/array-init.c
index cfdf8e2bd7c..ad0fc708d75 100644
--- a/clang/test/Sema/array-init.c
+++ b/clang/test/Sema/array-init.c
@@ -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)}}
diff --git a/clang/test/Sema/compound-literal.c b/clang/test/Sema/compound-literal.c
index beec6ca66e8..bac7b0e6024 100644
--- a/clang/test/Sema/compound-literal.c
+++ b/clang/test/Sema/compound-literal.c
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -fsyntax-only -verify -pedantic %s
+// REQUIRES: LP64
struct foo { int a, b; };
diff --git a/clang/test/SemaCXX/cstyle-cast.cpp b/clang/test/SemaCXX/cstyle-cast.cpp
index 12495ecdc5c..468c8ecb23c 100644
--- a/clang/test/SemaCXX/cstyle-cast.cpp
+++ b/clang/test/SemaCXX/cstyle-cast.cpp
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s
+// REQUIRES: LP64
struct A {};
diff --git a/clang/test/SemaCXX/functional-cast.cpp b/clang/test/SemaCXX/functional-cast.cpp
index 61e4da3da9b..f8e0c465875 100644
--- a/clang/test/SemaCXX/functional-cast.cpp
+++ b/clang/test/SemaCXX/functional-cast.cpp
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s
+// REQUIRES: LP64
// ------------ not interpreted as C-style cast ------------
diff --git a/clang/test/SemaCXX/overloaded-builtin-operators.cpp b/clang/test/SemaCXX/overloaded-builtin-operators.cpp
index ac110a3c056..19dc3387163 100644
--- a/clang/test/SemaCXX/overloaded-builtin-operators.cpp
+++ b/clang/test/SemaCXX/overloaded-builtin-operators.cpp
@@ -1,4 +1,6 @@
// RUN: %clang_cc1 -fsyntax-only -fshow-overloads=best -verify %s
+// REQUIRES: LP64
+
struct yes;
struct no;
diff --git a/clang/test/SemaObjC/nonnull.m b/clang/test/SemaObjC/nonnull.m
index a38c0acb84f..902105b924d 100644
--- a/clang/test/SemaObjC/nonnull.m
+++ b/clang/test/SemaObjC/nonnull.m
@@ -1,6 +1,7 @@
#include "nonnull.h"
// RUN: %clang_cc1 -fblocks -fsyntax-only -verify -Wno-objc-root-class %s
+// REQUIRES: LP64
@class NSObject;
diff --git a/clang/test/lit.cfg b/clang/test/lit.cfg
index f271747ceca..d7c3de4a3d8 100644
--- a/clang/test/lit.cfg
+++ b/clang/test/lit.cfg
@@ -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()
OpenPOWER on IntegriCloud