// RUN: %clang_cc1 -analyze -analyzer-checker=core,unix.Malloc,debug.ExprInspection -verify %s
+// REQUIRES: LP64
void clang_analyzer_eval(bool);
// RUN: %clang_cc1 %s -emit-llvm -O1 -o -
+// REQUIRES: LP64
typedef long intptr_t;
int test(void *b) {
// RUN: %clang_cc1 -Wno-error=return-type %s -emit-llvm-only
+// REQUIRES: LP64
void test1(int x) {
switch (x) {
// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
+// REQUIRES: LP64
struct S {
int A[2];
// RUN: %clang_cc1 -emit-llvm -o - %s -std=c++11
+// REQUIRES: LP64
+
void *f1(unsigned long l) {
return reinterpret_cast<void *>(l);
}
// RUN: %clang_cc1 -emit-llvm -o %t %s
+// REQUIRES: LP64
@interface Object
- (id) new;
// RUN: %clang_cc1 -fsyntax-only -pedantic -verify %s
+// REQUIRES: LP64
extern int foof() = 1; // expected-error{{illegal initializer (only variables can be initialized)}}
// RUN: %clang_cc1 -fsyntax-only -verify -pedantic %s
+// REQUIRES: LP64
struct foo { int a, b; };
// RUN: %clang_cc1 -fsyntax-only -verify %s
+// REQUIRES: LP64
struct A {};
// RUN: %clang_cc1 -fsyntax-only -verify %s
+// REQUIRES: LP64
// ------------ not interpreted as C-style cast ------------
// RUN: %clang_cc1 -fsyntax-only -fshow-overloads=best -verify %s
+// REQUIRES: LP64
+
struct yes;
struct no;
#include "nonnull.h"
// RUN: %clang_cc1 -fblocks -fsyntax-only -verify -Wno-objc-root-class %s
+// REQUIRES: LP64
@class NSObject;
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()