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

NAKAMURA Takumi geek4civic at gmail.com
Wed Sep 12 03:45:40 PDT 2012


Author: chapuni
Date: Wed Sep 12 05:45:40 2012
New Revision: 163699

URL: http://llvm.org/viewvc/llvm-project?rev=163699&view=rev
Log:
clang/test: [PR8833] Introduce the feature "LP64" to suppress LLP64-incompatible tests.

I think some of them could be rewritten to fit also LLP64.

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

Modified: cfe/trunk/test/Analysis/cxx-crashes.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/cxx-crashes.cpp?rev=163699&r1=163698&r2=163699&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/cxx-crashes.cpp (original)
+++ cfe/trunk/test/Analysis/cxx-crashes.cpp Wed Sep 12 05:45:40 2012
@@ -1,4 +1,5 @@
 // RUN: %clang_cc1 -analyze -analyzer-checker=core,unix.Malloc,debug.ExprInspection -verify %s
+// REQUIRES: LP64
 
 void clang_analyzer_eval(bool);
 

Modified: cfe/trunk/test/CodeGen/2008-12-23-AsmIntPointerTie.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/2008-12-23-AsmIntPointerTie.c?rev=163699&r1=163698&r2=163699&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/2008-12-23-AsmIntPointerTie.c (original)
+++ cfe/trunk/test/CodeGen/2008-12-23-AsmIntPointerTie.c Wed Sep 12 05:45:40 2012
@@ -1,4 +1,5 @@
 // RUN: %clang_cc1 %s -emit-llvm -O1 -o -
+// REQUIRES: LP64
 
 typedef long intptr_t;
 int test(void *b) {

Modified: cfe/trunk/test/CodeGen/statements.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/statements.c?rev=163699&r1=163698&r2=163699&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/statements.c (original)
+++ cfe/trunk/test/CodeGen/statements.c Wed Sep 12 05:45:40 2012
@@ -1,4 +1,5 @@
 // RUN: %clang_cc1 -Wno-error=return-type %s -emit-llvm-only
+// REQUIRES: LP64
 
 void test1(int x) {
 switch (x) {

Modified: cfe/trunk/test/CodeGenCXX/2005-01-03-StaticInitializers.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/2005-01-03-StaticInitializers.cpp?rev=163699&r1=163698&r2=163699&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/2005-01-03-StaticInitializers.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/2005-01-03-StaticInitializers.cpp Wed Sep 12 05:45:40 2012
@@ -1,4 +1,5 @@
 // RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
+// REQUIRES: LP64
 
 struct S {
   int  A[2];

Modified: cfe/trunk/test/CodeGenCXX/reinterpret-cast.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/reinterpret-cast.cpp?rev=163699&r1=163698&r2=163699&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/reinterpret-cast.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/reinterpret-cast.cpp Wed Sep 12 05:45:40 2012
@@ -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);
 }

Modified: cfe/trunk/test/CodeGenObjC/newproperty-nested-synthesis-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/newproperty-nested-synthesis-1.m?rev=163699&r1=163698&r2=163699&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/newproperty-nested-synthesis-1.m (original)
+++ cfe/trunk/test/CodeGenObjC/newproperty-nested-synthesis-1.m Wed Sep 12 05:45:40 2012
@@ -1,4 +1,5 @@
 // RUN: %clang_cc1 -emit-llvm -o %t %s
+// REQUIRES: LP64
 
 @interface Object
 - (id) new;

Modified: cfe/trunk/test/Sema/array-init.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/array-init.c?rev=163699&r1=163698&r2=163699&view=diff
==============================================================================
--- cfe/trunk/test/Sema/array-init.c (original)
+++ cfe/trunk/test/Sema/array-init.c Wed Sep 12 05:45:40 2012
@@ -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)}}
 

Modified: cfe/trunk/test/Sema/compound-literal.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/compound-literal.c?rev=163699&r1=163698&r2=163699&view=diff
==============================================================================
--- cfe/trunk/test/Sema/compound-literal.c (original)
+++ cfe/trunk/test/Sema/compound-literal.c Wed Sep 12 05:45:40 2012
@@ -1,4 +1,5 @@
 // RUN: %clang_cc1 -fsyntax-only -verify -pedantic %s
+// REQUIRES: LP64
 
 struct foo { int a, b; };
 

Modified: cfe/trunk/test/SemaCXX/cstyle-cast.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/cstyle-cast.cpp?rev=163699&r1=163698&r2=163699&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/cstyle-cast.cpp (original)
+++ cfe/trunk/test/SemaCXX/cstyle-cast.cpp Wed Sep 12 05:45:40 2012
@@ -1,4 +1,5 @@
 // RUN: %clang_cc1 -fsyntax-only -verify %s
+// REQUIRES: LP64
 
 struct A {};
 

Modified: cfe/trunk/test/SemaCXX/functional-cast.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/functional-cast.cpp?rev=163699&r1=163698&r2=163699&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/functional-cast.cpp (original)
+++ cfe/trunk/test/SemaCXX/functional-cast.cpp Wed Sep 12 05:45:40 2012
@@ -1,4 +1,5 @@
 // RUN: %clang_cc1 -fsyntax-only -verify %s
+// REQUIRES: LP64
 
 // ------------ not interpreted as C-style cast ------------
 

Modified: cfe/trunk/test/SemaCXX/overloaded-builtin-operators.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/overloaded-builtin-operators.cpp?rev=163699&r1=163698&r2=163699&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/overloaded-builtin-operators.cpp (original)
+++ cfe/trunk/test/SemaCXX/overloaded-builtin-operators.cpp Wed Sep 12 05:45:40 2012
@@ -1,4 +1,6 @@
 // RUN: %clang_cc1 -fsyntax-only -fshow-overloads=best -verify %s 
+// REQUIRES: LP64
+
 struct yes;
 struct no;
 

Modified: cfe/trunk/test/SemaObjC/nonnull.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/nonnull.m?rev=163699&r1=163698&r2=163699&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/nonnull.m (original)
+++ cfe/trunk/test/SemaObjC/nonnull.m Wed Sep 12 05:45:40 2012
@@ -1,6 +1,7 @@
 #include "nonnull.h"
 
 // RUN: %clang_cc1 -fblocks -fsyntax-only -verify -Wno-objc-root-class %s
+// REQUIRES: LP64
 
 @class NSObject;
 

Modified: cfe/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/lit.cfg?rev=163699&r1=163698&r2=163699&view=diff
==============================================================================
--- cfe/trunk/test/lit.cfg (original)
+++ cfe/trunk/test/lit.cfg Wed Sep 12 05:45:40 2012
@@ -226,6 +226,10 @@
 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()





More information about the cfe-commits mailing list