]> granicus.if.org Git - clang/commitdiff
clang/test: [PR8833] Introduce the feature "LP64" to suppress LLP64-incompatible...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 12 Sep 2012 10:45:40 +0000 (10:45 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 12 Sep 2012 10:45:40 +0000 (10:45 +0000)
I think some of them could be rewritten to fit also LLP64.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163699 91177308-0d34-0410-b5e6-96231b3b80d8

13 files changed:
test/Analysis/cxx-crashes.cpp
test/CodeGen/2008-12-23-AsmIntPointerTie.c
test/CodeGen/statements.c
test/CodeGenCXX/2005-01-03-StaticInitializers.cpp
test/CodeGenCXX/reinterpret-cast.cpp
test/CodeGenObjC/newproperty-nested-synthesis-1.m
test/Sema/array-init.c
test/Sema/compound-literal.c
test/SemaCXX/cstyle-cast.cpp
test/SemaCXX/functional-cast.cpp
test/SemaCXX/overloaded-builtin-operators.cpp
test/SemaObjC/nonnull.m
test/lit.cfg

index 8912bf68de3fff49da4cb034ade151a0c4392feb..e3f812540d0be1808209acfcf5c9a7edb7eaa07c 100644 (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);
 
index df646b7801f7443b03bb696852ee328d0cde38b0..04b285e6866cef7e546a4ae2ebdc031740e4c89b 100644 (file)
@@ -1,4 +1,5 @@
 // RUN: %clang_cc1 %s -emit-llvm -O1 -o -
+// REQUIRES: LP64
 
 typedef long intptr_t;
 int test(void *b) {
index e2bbb5a90a818952d99c9e7247fda2662f6cb0e2..5affb9a83513d09da152012325cd4dd3ca226fd7 100644 (file)
@@ -1,4 +1,5 @@
 // RUN: %clang_cc1 -Wno-error=return-type %s -emit-llvm-only
+// REQUIRES: LP64
 
 void test1(int x) {
 switch (x) {
index 875c412c6b4881213dbc684134b29be8c0d9f08d..1c9d1202afb22dfb1dd2212cd778526db1ea8716 100644 (file)
@@ -1,4 +1,5 @@
 // RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
+// REQUIRES: LP64
 
 struct S {
   int  A[2];
index dafa67529f770cfee0478eabe3b6c7d10de7474d..63c5a2adc64dacfa05594e1f434c6adb4ab213cf 100644 (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);
 }
index 4831c22463b8411d2a2588ee3f2e1894ee6a5213..aa0c8c923971eeee780d9f317d6dcf35e5271637 100644 (file)
@@ -1,4 +1,5 @@
 // RUN: %clang_cc1 -emit-llvm -o %t %s
+// REQUIRES: LP64
 
 @interface Object
 - (id) new;
index cfdf8e2bd7ca6fff266f796678f332609bc7924e..ad0fc708d75a033b12f449a24c271a48ee6be01a 100644 (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)}}
 
index beec6ca66e8f21b8913534c4750017af5eecc580..bac7b0e6024631467b68504b784a7ede3cd93f10 100644 (file)
@@ -1,4 +1,5 @@
 // RUN: %clang_cc1 -fsyntax-only -verify -pedantic %s
+// REQUIRES: LP64
 
 struct foo { int a, b; };
 
index 12495ecdc5c195a01c3780d521b46b705babc34f..468c8ecb23c425419e2116115761bc90fef0b84e 100644 (file)
@@ -1,4 +1,5 @@
 // RUN: %clang_cc1 -fsyntax-only -verify %s
+// REQUIRES: LP64
 
 struct A {};
 
index 61e4da3da9b8a0170865f0dd72a8b0cad957a1f4..f8e0c465875effa14ec3c69f0f159478a280d8e8 100644 (file)
@@ -1,4 +1,5 @@
 // RUN: %clang_cc1 -fsyntax-only -verify %s
+// REQUIRES: LP64
 
 // ------------ not interpreted as C-style cast ------------
 
index ac110a3c0561cacd632fae8bb76631a5e78e0ee9..19dc338716301cc6b6688cf0795fe2c17fb971b9 100644 (file)
@@ -1,4 +1,6 @@
 // RUN: %clang_cc1 -fsyntax-only -fshow-overloads=best -verify %s 
+// REQUIRES: LP64
+
 struct yes;
 struct no;
 
index a38c0acb84f10a52695d05e2d529378183899121..902105b924dd8b2469705144bf5a774eb088368c 100644 (file)
@@ -1,6 +1,7 @@
 #include "nonnull.h"
 
 // RUN: %clang_cc1 -fblocks -fsyntax-only -verify -Wno-objc-root-class %s
+// REQUIRES: LP64
 
 @class NSObject;
 
index f271747ceca8bfbcb1f61ed375ffaa9093bf05ab..d7c3de4a3d8d574682eb9f54d8f3052b011f2c7c 100644 (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()