зеркало из https://github.com/microsoft/clang.git
Rename clang to clang-cc.
Tests and drivers updated, still need to shuffle dirs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67602 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
f94e215e4a
Коммит
d7d5f0223b
|
@ -1,5 +1,5 @@
|
|||
LEVEL = ../../..
|
||||
TOOLNAME = clang
|
||||
TOOLNAME = clang-cc
|
||||
CPPFLAGS += -I$(PROJ_SRC_DIR)/../include -I$(PROJ_OBJ_DIR)/../include
|
||||
CXXFLAGS = -fno-rtti
|
||||
|
||||
|
|
|
@ -332,7 +332,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
}
|
||||
|
||||
const char *Exec =
|
||||
Args.MakeArgString(getToolChain().GetProgramPath(C, "clang").c_str());
|
||||
Args.MakeArgString(getToolChain().GetProgramPath(C, "clang-cc").c_str());
|
||||
Dest.addCommand(new Command(Exec, CmdArgs));
|
||||
|
||||
// Claim some arguments which clang doesn't support, but we don't
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// RUN: clang -analyze -checker-cfref -verify -fobjc-gc -analyzer-constraints=basic %s &&
|
||||
// RUN: clang -analyze -checker-cfref -verify -fobjc-gc -analyzer-constraints=range %s &&
|
||||
// RUN: clang -analyze -checker-cfref -verify -fobjc-gc -disable-free %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=basic -verify -fobjc-gc %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=range -verify -fobjc-gc %s
|
||||
// RUN: clang-cc -analyze -checker-cfref -verify -fobjc-gc -analyzer-constraints=basic %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -verify -fobjc-gc -analyzer-constraints=range %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -verify -fobjc-gc -disable-free %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=basic -verify -fobjc-gc %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=range -verify -fobjc-gc %s
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// The following code is reduced using delta-debugging from
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// RUN: clang -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=basic -verify -triple x86_64-apple-darwin9 %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=range -verify -triple x86_64-apple-darwin9 %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=basic -verify -triple x86_64-apple-darwin9 %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=range -verify -triple x86_64-apple-darwin9 %s
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=basic -verify -triple x86_64-apple-darwin9 %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=range -verify -triple x86_64-apple-darwin9 %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=basic -verify -triple x86_64-apple-darwin9 %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=range -verify -triple x86_64-apple-darwin9 %s
|
||||
|
||||
typedef signed long CFIndex;
|
||||
typedef const struct __CFAllocator * CFAllocatorRef;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// RUN: clang -analyze -checker-cfref -verify %s -analyzer-constraints=basic -analyzer-store=basic &&
|
||||
// RUN: clang -analyze -checker-cfref -verify %s -analyzer-constraints=range -analyzer-store=basic &&
|
||||
// RUN: clang -analyze -checker-cfref -verify %s -analyzer-constraints=basic -analyzer-store=region &&
|
||||
// RUN: clang -analyze -checker-cfref -verify %s -analyzer-constraints=range -analyzer-store=region
|
||||
// RUN: clang-cc -analyze -checker-cfref -verify %s -analyzer-constraints=basic -analyzer-store=basic &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -verify %s -analyzer-constraints=range -analyzer-store=basic &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -verify %s -analyzer-constraints=basic -analyzer-store=region &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -verify %s -analyzer-constraints=range -analyzer-store=region
|
||||
|
||||
typedef struct objc_selector *SEL;
|
||||
typedef signed char BOOL;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// RUN: clang -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=range -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=range -verify %s
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=range -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=range -verify %s
|
||||
|
||||
typedef struct CGColorSpace *CGColorSpaceRef;
|
||||
extern CGColorSpaceRef CGColorSpaceCreateDeviceRGB(void);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// RUN: clang -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=range -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=range -verify %s
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=range -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=range -verify %s
|
||||
|
||||
|
||||
typedef signed char BOOL;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -analyze -warn-objc-missing-dealloc '-DIBOutlet=__attribute__((iboutlet))' %s --verify
|
||||
// RUN: clang-cc -analyze -warn-objc-missing-dealloc '-DIBOutlet=__attribute__((iboutlet))' %s --verify
|
||||
typedef signed char BOOL;
|
||||
@protocol NSObject
|
||||
- (BOOL)isEqual:(id)object;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// RUN: clang -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=range -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=range -verify %s
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=range -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=range -verify %s
|
||||
|
||||
// BEGIN delta-debugging reduced header stuff
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// RUN: clang -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=range -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=range -verify %s
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=range -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=range -verify %s
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// The following code is reduced using delta-debugging from
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// RUN: clang -analyze -checker-cfref -warn-dead-stores -analyzer-store=basic -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -warn-dead-stores -analyzer-store=basic -analyzer-constraints=range -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -warn-dead-stores -analyzer-store=region -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -warn-dead-stores -analyzer-store=region -analyzer-constraints=range -verify %s
|
||||
// RUN: clang-cc -analyze -checker-cfref -warn-dead-stores -analyzer-store=basic -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -warn-dead-stores -analyzer-store=basic -analyzer-constraints=range -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -warn-dead-stores -analyzer-store=region -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -warn-dead-stores -analyzer-store=region -analyzer-constraints=range -verify %s
|
||||
|
||||
// These declarations were reduced using Delta-Debugging from Foundation.h
|
||||
// on Mac OS X. The test cases are below.
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
// RUN: clang -analyze -checker-simple -analyzer-store=basic -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang -analyze -checker-simple -analyzer-store=basic -analyzer-constraints=range -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=range -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=range -verify %s
|
||||
// RUN: clang-cc -analyze -checker-simple -analyzer-store=basic -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-simple -analyzer-store=basic -analyzer-constraints=range -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=range -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=range -verify %s
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
// RUN: clang -analyze -checker-simple -analyzer-store=basic -analyzer-constraints=basic %s -verify &&
|
||||
// RUN: clang -analyze -checker-simple -analyzer-store=basic -analyzer-constraints=range %s -verify &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=basic %s -verify &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=range %s -verify &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=basic %s -verify &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=range %s -verify
|
||||
// RUN: clang-cc -analyze -checker-simple -analyzer-store=basic -analyzer-constraints=basic %s -verify &&
|
||||
// RUN: clang-cc -analyze -checker-simple -analyzer-store=basic -analyzer-constraints=range %s -verify &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=basic %s -verify &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=range %s -verify &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=basic %s -verify &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=range %s -verify
|
||||
|
||||
// The point of this test cases is to exercise properties in the static
|
||||
// analyzer
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -analyze -warn-objc-methodsigs -verify %s
|
||||
// RUN: clang-cc -analyze -warn-objc-methodsigs -verify %s
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// RUN: clang -analyze -analyzer-constraints=basic -analyzer-store=basic -checker-cfref -fobjc-gc -verify %s &&
|
||||
// RUN: clang -analyze -analyzer-constraints=range -analyzer-store=basic -checker-cfref -fobjc-gc -verify %s &&
|
||||
// RUN: clang -analyze -analyzer-constraints=basic -analyzer-store=basic -checker-cfref -fobjc-gc -verify %s &&
|
||||
// RUN: clang -analyze -analyzer-constraints=range -analyzer-store=region -checker-cfref -fobjc-gc -verify %s
|
||||
// RUN: clang-cc -analyze -analyzer-constraints=basic -analyzer-store=basic -checker-cfref -fobjc-gc -verify %s &&
|
||||
// RUN: clang-cc -analyze -analyzer-constraints=range -analyzer-store=basic -checker-cfref -fobjc-gc -verify %s &&
|
||||
// RUN: clang-cc -analyze -analyzer-constraints=basic -analyzer-store=basic -checker-cfref -fobjc-gc -verify %s &&
|
||||
// RUN: clang-cc -analyze -analyzer-constraints=range -analyzer-store=region -checker-cfref -fobjc-gc -verify %s
|
||||
|
||||
typedef const void * CFTypeRef;
|
||||
typedef const struct __CFString * CFStringRef;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -analyze -warn-objc-missing-dealloc %s -verify
|
||||
// RUN: clang-cc -analyze -warn-objc-missing-dealloc %s -verify
|
||||
|
||||
// Tests for the checker which checks missing/extra ivar 'release' calls
|
||||
// in dealloc.
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// RUN: clang -analyze -checker-simple -analyzer-store=basic -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=range -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=range -verify %s
|
||||
// RUN: clang-cc -analyze -checker-simple -analyzer-store=basic -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=range -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=range -verify %s
|
||||
|
||||
struct s {
|
||||
int data;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: clang -analyze -checker-cfref -analyzer-store=basic --verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region --verify %s
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic --verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region --verify %s
|
||||
|
||||
// Test function pointer casts. Currently we track function addresses using
|
||||
// loc::FunctionVal. Because casts can be arbitrary, do we need to model
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// RUN: clang -analyze -checker-cfref --analyzer-store=basic -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref --analyzer-store=basic -analyzer-constraints=range -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref --analyzer-store=region -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref --analyzer-store=region -analyzer-constraints=range -verify %s
|
||||
// RUN: clang-cc -analyze -checker-cfref --analyzer-store=basic -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref --analyzer-store=basic -analyzer-constraints=range -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref --analyzer-store=region -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref --analyzer-store=region -analyzer-constraints=range -verify %s
|
||||
|
||||
typedef unsigned char Boolean;
|
||||
typedef signed long CFIndex;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// RUN: clang -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=range -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=range -verify %s
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=range -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=range -verify %s
|
||||
|
||||
// This test case was reported in <rdar:problem/6080742>.
|
||||
// It tests path-sensitivity with respect to '!(cfstring != 0)' (negation of inequality).
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// RUN: clang -analyze -checker-simple -analyzer-store=basic -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=range -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=range -verify %s
|
||||
// RUN: clang-cc -analyze -checker-simple -analyzer-store=basic -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=range -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=basic -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=range -verify %s
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -analyze -warn-dead-stores -warn-uninit-values -verify %s
|
||||
// RUN: clang-cc -analyze -warn-dead-stores -warn-uninit-values -verify %s
|
||||
|
||||
void f1()
|
||||
{
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
// RUN: clang -analyze -warn-dead-stores -verify %s &&
|
||||
// RUN: clang -analyze -checker-simple -analyzer-store=basic -analyzer-constraints=basic -warn-dead-stores -verify %s &&
|
||||
// RUN: clang -analyze -checker-simple -analyzer-store=basic -analyzer-constraints=range -warn-dead-stores -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=basic -warn-dead-stores -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=range -warn-dead-stores -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=basic -warn-dead-stores -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=range -warn-dead-stores -verify %s
|
||||
// RUN: clang-cc -analyze -warn-dead-stores -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-simple -analyzer-store=basic -analyzer-constraints=basic -warn-dead-stores -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-simple -analyzer-store=basic -analyzer-constraints=range -warn-dead-stores -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=basic -warn-dead-stores -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=range -warn-dead-stores -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=basic -warn-dead-stores -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=range -warn-dead-stores -verify %s
|
||||
|
||||
void f1() {
|
||||
int k, y;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -analyze -warn-dead-stores -verify %s
|
||||
// RUN: clang-cc -analyze -warn-dead-stores -verify %s
|
||||
|
||||
typedef signed char BOOL;
|
||||
typedef unsigned int NSUInteger;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// RUN: clang -analyze -checker-simple -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=basic -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -verify %s
|
||||
// RUN: clang-cc -analyze -checker-simple -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -verify %s
|
||||
//
|
||||
// Just exercise the analyzer on code that has at one point caused issues
|
||||
// (i.e., no assertions or crashes).
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// RUN: clang -analyze -checker-cfref %s --analyzer-store=basic -verify &&
|
||||
// RUN: clang -analyze -checker-cfref %s --analyzer-store=region -verify &&
|
||||
// RUN: clang -analyze -checker-simple %s -verify
|
||||
// RUN: clang-cc -analyze -checker-cfref %s --analyzer-store=basic -verify &&
|
||||
// RUN: clang-cc -analyze -checker-cfref %s --analyzer-store=region -verify &&
|
||||
// RUN: clang-cc -analyze -checker-simple %s -verify
|
||||
|
||||
unsigned foo();
|
||||
typedef struct bf { unsigned x:2; } bf;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// RUN: clang -analyze -checker-simple -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=basic -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -verify %s
|
||||
// RUN: clang-cc -analyze -checker-simple -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -verify %s
|
||||
|
||||
void f(void) {
|
||||
void (*p)(void);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -analyze -checker-cfref --analyzer-store=basic --verify -fblocks %s
|
||||
// RUN: clang-cc -analyze -checker-cfref --analyzer-store=basic --verify -fblocks %s
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// Test case 'checkaccess_union' differs for region store and basic store.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -analyze -checker-cfref --analyzer-store=region -analyzer-constraints=range --verify -fblocks %s -analyzer-eagerly-assume
|
||||
// RUN: clang-cc -analyze -checker-cfref --analyzer-store=region -analyzer-constraints=range --verify -fblocks %s -analyzer-eagerly-assume
|
||||
|
||||
// Delta-reduced header stuff (needed for test cases).
|
||||
typedef signed char BOOL;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -analyze -checker-cfref --analyzer-store=region --verify -fblocks %s
|
||||
// RUN: clang-cc -analyze -checker-cfref --analyzer-store=region --verify -fblocks %s
|
||||
|
||||
typedef struct objc_selector *SEL;
|
||||
typedef signed char BOOL;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// RUN: clang -analyze -checker-cfref --analyzer-store=basic -analyzer-constraints=basic --verify -fblocks %s &&
|
||||
// RUN: clang -analyze -checker-cfref --analyzer-store=basic -analyzer-constraints=range --verify -fblocks %s &&
|
||||
// RUN: clang -analyze -checker-cfref --analyzer-store=region -analyzer-constraints=basic --verify -fblocks %s &&
|
||||
// RUN: clang -analyze -checker-cfref --analyzer-store=region -analyzer-constraints=range --verify -fblocks %s
|
||||
// RUN: clang-cc -analyze -checker-cfref --analyzer-store=basic -analyzer-constraints=basic --verify -fblocks %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref --analyzer-store=basic -analyzer-constraints=range --verify -fblocks %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref --analyzer-store=region -analyzer-constraints=basic --verify -fblocks %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref --analyzer-store=region -analyzer-constraints=range --verify -fblocks %s
|
||||
|
||||
typedef struct objc_selector *SEL;
|
||||
typedef signed char BOOL;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: clang -analyze -checker-cfref -analyzer-store=basic -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -verify %s
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -verify %s
|
||||
|
||||
// This is a test case for the issue reported in PR 2819:
|
||||
// http://llvm.org/bugs/show_bug.cgi?id=2819
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// RUN: clang -analyze -std=gnu99 -checker-simple -verify %s &&
|
||||
// RUN: clang -analyze -std=gnu99 -checker-simple -verify %s -analyzer-constraints=range &&
|
||||
// RUN: clang -analyze -std=gnu99 -checker-simple -analyzer-store=region -analyzer-purge-dead=false -verify %s &&
|
||||
// RUN: clang -analyze -std=gnu99 -checker-cfref -analyzer-store=region -verify %s
|
||||
// RUN: clang-cc -analyze -std=gnu99 -checker-simple -verify %s &&
|
||||
// RUN: clang-cc -analyze -std=gnu99 -checker-simple -verify %s -analyzer-constraints=range &&
|
||||
// RUN: clang-cc -analyze -std=gnu99 -checker-simple -analyzer-store=region -analyzer-purge-dead=false -verify %s &&
|
||||
// RUN: clang-cc -analyze -std=gnu99 -checker-cfref -analyzer-store=region -verify %s
|
||||
|
||||
#include<stdint.h>
|
||||
#include <assert.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -analyze -checker-simple -analyzer-store=region -verify %s
|
||||
// RUN: clang-cc -analyze -checker-simple -analyzer-store=region -verify %s
|
||||
|
||||
char f1() {
|
||||
char* s = "abcd";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// RUN: clang -analyze -checker-simple -analyzer-store=region -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -verify -triple x86_64-apple-darwin9 %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -verify -triple i686-apple-darwin9 %s
|
||||
// RUN: clang-cc -analyze -checker-simple -analyzer-store=region -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -verify -triple x86_64-apple-darwin9 %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -verify -triple i686-apple-darwin9 %s
|
||||
|
||||
void f1() {
|
||||
int a[10];
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: clang -analyze -checker-cfref %s --analyzer-store=basic -verify &&
|
||||
// RUN: clang -analyze -checker-cfref %s --analyzer-store=region -verify
|
||||
// RUN: clang-cc -analyze -checker-cfref %s --analyzer-store=basic -verify &&
|
||||
// RUN: clang-cc -analyze -checker-cfref %s --analyzer-store=region -verify
|
||||
|
||||
typedef int bar_return_t;
|
||||
typedef struct {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: clang -analyze -checker-cfref -analyzer-store=basic -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -verify %s
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -verify %s
|
||||
|
||||
typedef const struct __CFAllocator * CFAllocatorRef;
|
||||
typedef struct __CFDictionary * CFMutableDictionaryRef;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -analyze -warn-dead-stores -verify %s
|
||||
// RUN: clang-cc -analyze -warn-dead-stores -verify %s
|
||||
//
|
||||
// This test exercises the live variables analysis (LiveVariables.cpp).
|
||||
// The case originally identified a non-termination bug.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -verify -analyze -checker-cfref -analyzer-store=region %s
|
||||
// RUN: clang-cc -verify -analyze -checker-cfref -analyzer-store=region %s
|
||||
|
||||
struct tea_cheese { unsigned magic; };
|
||||
typedef struct tea_cheese kernel_tea_cheese_t;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -verify -analyze -checker-cfref -analyzer-store=basic %s
|
||||
// RUN: clang-cc -verify -analyze -checker-cfref -analyzer-store=basic %s
|
||||
|
||||
struct tea_cheese { unsigned magic; };
|
||||
typedef struct tea_cheese kernel_tea_cheese_t;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -analyze -checker-cfref -analyzer-constraints=basic -analyzer-store=basic -verify %s
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-constraints=basic -analyzer-store=basic -verify %s
|
||||
//
|
||||
// This test case mainly checks that the retain/release checker doesn't crash
|
||||
// on this file.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -analyze -checker-cfref -analyzer-store=basic -verify %s
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -verify %s
|
||||
|
||||
typedef const void * CFTypeRef;
|
||||
typedef double CFTimeInterval;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -analyze -checker-cfref -analyzer-constraints=basic -analyzer-store=basic %s -verify
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-constraints=basic -analyzer-store=basic %s -verify
|
||||
|
||||
typedef struct Foo { int x; } Bar;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: clang -analyze -checker-cfref -analyzer-store=basic -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -verify %s
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -verify %s
|
||||
|
||||
typedef const struct __CFString * CFStringRef;
|
||||
typedef const struct __CFAllocator * CFAllocatorRef;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: clang -analyze -checker-cfref -analyzer-store=basic -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -verify %s
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -verify %s
|
||||
//
|
||||
// This test case simply should not crash. It evaluates the logic of not
|
||||
// using MemRegion::getRValueType in incorrect places.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -analyze -checker-simple -analyzer-store=region -verify %s
|
||||
// RUN: clang-cc -analyze -checker-simple -analyzer-store=region -verify %s
|
||||
|
||||
// Region store must be enabled for tests in this file.
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -analyze -checker-cfref -analyzer-store=basic -verify %s
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -verify %s
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// The following code is reduced using delta-debugging from
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: clang -analyze -checker-cfref -verify -fobjc-gc-only %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -fobjc-gc-only -verify %s
|
||||
// RUN: clang-cc -analyze -checker-cfref -verify -fobjc-gc-only %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -fobjc-gc-only -verify %s
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Header stuff.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -verify %s
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -verify %s
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// The following code is reduced using delta-debugging from
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: clang -analyze -checker-cfref -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -verify %s
|
||||
// RUN: clang-cc -analyze -checker-cfref -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -verify %s
|
||||
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// RUN: clang -analyze -checker-simple -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=basic -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -verify %s
|
||||
// RUN: clang-cc -analyze -checker-simple -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -verify %s
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// RUN: clang -analyze -checker-simple -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=basic -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -verify %s
|
||||
// RUN: clang-cc -analyze -checker-simple -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -verify %s
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// The following code is reduced using delta-debugging from
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: clang -analyze -verify -analyzer-store=basic -checker-cfref %s &&
|
||||
// RUN: clang -analyze -verify -analyzer-store=region -checker-cfref %s
|
||||
// RUN: clang-cc -analyze -verify -analyzer-store=basic -checker-cfref %s &&
|
||||
// RUN: clang-cc -analyze -verify -analyzer-store=region -checker-cfref %s
|
||||
|
||||
// Delta-Debugging reduced preamble.
|
||||
typedef signed char BOOL;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -analyze -checker-simple -analyzer-store=region -verify %s
|
||||
// RUN: clang-cc -analyze -checker-simple -analyzer-store=region -verify %s
|
||||
|
||||
struct s {
|
||||
int data;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: clang -analyze -checker-cfref -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -verify %s
|
||||
// RUN: clang-cc -analyze -checker-cfref -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -verify %s
|
||||
|
||||
struct FPRec {
|
||||
void (*my_func)(int * x);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -analyze -warn-uninit-values -verify %s
|
||||
// RUN: clang-cc -analyze -warn-uninit-values -verify %s
|
||||
|
||||
int f1() {
|
||||
int x;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: clang -analyze -checker-cfref -analyzer-store=basic -verify %s &&
|
||||
// RUN: clang -analyze -checker-cfref -analyzer-store=region -verify %s
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -verify %s &&
|
||||
// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -verify %s
|
||||
|
||||
typedef unsigned int NSUInteger;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -analyze -warn-objc-unused-ivars %s -verify
|
||||
// RUN: clang-cc -analyze -warn-objc-unused-ivars %s -verify
|
||||
|
||||
@interface A
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -emit-llvm %s -o %t
|
||||
// RUN: clang-cc -emit-llvm %s -o %t
|
||||
|
||||
int array[] = {1, 2, 3, 4, 5};
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang %s -emit-llvm -o %t
|
||||
// RUN: clang-cc %s -emit-llvm -o %t
|
||||
// PR1990
|
||||
|
||||
struct test {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang %s -emit-llvm -o %t
|
||||
// RUN: clang-cc %s -emit-llvm -o %t
|
||||
|
||||
struct test {
|
||||
unsigned a:1;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -emit-llvm < %s | grep "\$0,\$1"
|
||||
// RUN: clang-cc -emit-llvm < %s | grep "\$0,\$1"
|
||||
|
||||
void f() {
|
||||
int d1, d2;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: rm -f %t1.bc
|
||||
// RUN: not clang %s -emit-llvm-bc -o %t1.bc
|
||||
// RUN: not clang-cc %s -emit-llvm-bc -o %t1.bc
|
||||
// RUN: not test -f %t1.bc
|
||||
|
||||
void f() {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -emit-llvm -o - %s | grep -e "@g[0-9] " | count 2
|
||||
// RUN: clang-cc -emit-llvm -o - %s | grep -e "@g[0-9] " | count 2
|
||||
|
||||
int g0, f0();
|
||||
int f1(), g1;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang --emit-llvm -o %t %s &&
|
||||
// RUN: clang-cc --emit-llvm -o %t %s &&
|
||||
// RUN: grep "i8 52" %t | count 1
|
||||
|
||||
struct et7 {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang %s -emit-llvm -o -
|
||||
// RUN: clang-cc %s -emit-llvm -o -
|
||||
|
||||
int main () {
|
||||
struct foo {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -emit-llvm -o - %s | grep -e "^@f" | count 1
|
||||
// RUN: clang-cc -emit-llvm -o - %s | grep -e "^@f" | count 1
|
||||
|
||||
int x() {}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -triple i386-unknown-unknown --emit-llvm-bc -o - %s | opt --std-compile-opts | llvm-dis > %t &&
|
||||
// RUN: clang-cc -triple i386-unknown-unknown --emit-llvm-bc -o - %s | opt --std-compile-opts | llvm-dis > %t &&
|
||||
// RUN: grep "ret i32" %t | count 2 &&
|
||||
// RUN: grep "ret i32 0" %t | count 2
|
||||
// <rdar://problem/6113085>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang --emit-llvm -o - %s
|
||||
// RUN: clang-cc --emit-llvm -o - %s
|
||||
// <rdar://problem/6108358>
|
||||
|
||||
/* For posterity, the issue here begins initial "char []" decl for
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
// RUN: clang -emit-llvm -o %t %s &&
|
||||
// RUN: clang-cc -emit-llvm -o %t %s &&
|
||||
// RUN: grep "@pipe()" %t | count 0 &&
|
||||
// RUN: grep '_thisIsNotAPipe' %t | count 3 &&
|
||||
// RUN: grep 'g0' %t | count 0 &&
|
||||
// RUN: grep '_renamed' %t | count 2 &&
|
||||
// RUN: clang -DUSE_DEF -emit-llvm -o %t %s &&
|
||||
// RUN: clang-cc -DUSE_DEF -emit-llvm -o %t %s &&
|
||||
// RUN: grep "@pipe()" %t | count 0 &&
|
||||
// RUN: grep '_thisIsNotAPipe' %t | count 3
|
||||
// <rdr://6116729>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -triple i386-unknown-unknown -emit-llvm-bc -o - %s | opt -std-compile-opts | llvm-dis | grep "ret i32 1" | count 3
|
||||
// RUN: clang-cc -triple i386-unknown-unknown -emit-llvm-bc -o - %s | opt -std-compile-opts | llvm-dis | grep "ret i32 1" | count 3
|
||||
// <rdr://6115726>
|
||||
|
||||
int f0() {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang --emit-llvm -o - %s
|
||||
// RUN: clang-cc --emit-llvm -o - %s
|
||||
// <rdar://problem/6122967>
|
||||
|
||||
int f0(void *a, void *b) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang --emit-llvm -o %t %s
|
||||
// RUN: clang-cc --emit-llvm -o %t %s
|
||||
|
||||
typedef short T[4];
|
||||
struct s {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -emit-llvm -o %t %s
|
||||
// RUN: clang-cc -emit-llvm -o %t %s
|
||||
|
||||
@protocol P0
|
||||
@end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -emit-llvm -o %t %s
|
||||
// RUN: clang-cc -emit-llvm -o %t %s
|
||||
// PR2817
|
||||
|
||||
void f0(void) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -emit-llvm -o - %s | grep "store i32 1"
|
||||
// RUN: clang-cc -emit-llvm -o - %s | grep "store i32 1"
|
||||
// PR3150
|
||||
|
||||
int a() {return 1||1;}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -S -g -o %t.s %s
|
||||
// RUN: clang-cc -S -g -o %t.s %s
|
||||
|
||||
// FIXME: This test case can be removed at some point (since it will
|
||||
// no longer effectively test anything). The reason it was causing
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -emit-llvm -O1 < %s | grep "ret i32 0"
|
||||
// RUN: clang-cc -emit-llvm -O1 < %s | grep "ret i32 0"
|
||||
|
||||
int a(void) {
|
||||
return ++(struct x {unsigned x : 2;}){3}.x;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang %s -emit-llvm -o %t
|
||||
// RUN: clang-cc %s -emit-llvm -o %t
|
||||
typedef struct a b;
|
||||
|
||||
b* x;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -triple i386-unknown-unknown --emit-llvm-bc -o - %s | opt --std-compile-opts | llvm-dis > %t &&
|
||||
// RUN: clang-cc -triple i386-unknown-unknown --emit-llvm-bc -o - %s | opt --std-compile-opts | llvm-dis > %t &&
|
||||
// RUN: grep "ret i32" %t | count 1 &&
|
||||
// RUN: grep "ret i32 1" %t | count 1
|
||||
// PR2001
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -emit-llvm %s -o -
|
||||
// RUN: clang-cc -emit-llvm %s -o -
|
||||
void f()
|
||||
{
|
||||
void *addr;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -emit-llvm -o - %s
|
||||
// RUN: clang-cc -emit-llvm -o - %s
|
||||
// PR2643
|
||||
|
||||
void foo() {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -emit-llvm -o %t %s
|
||||
// RUN: clang-cc -emit-llvm -o %t %s
|
||||
// PR2743
|
||||
// <rdr://6094512>
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
// RUN: clang -emit-llvm %s -o -
|
||||
// RUN: clang-cc -emit-llvm %s -o -
|
||||
|
||||
int a = 2.0 ? 1 : 2;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// RUN: clang -emit-llvm %s -o - | grep 'declare i32 @printf' | count 1 &&
|
||||
// RUN: clang -O2 -emit-llvm %s -o - | grep 'declare i32 @puts' | count 1 &&
|
||||
// RUN: clang -ffreestanding -O2 -emit-llvm %s -o - | grep 'declare i32 @puts' | count 0
|
||||
// RUN: clang-cc -emit-llvm %s -o - | grep 'declare i32 @printf' | count 1 &&
|
||||
// RUN: clang-cc -O2 -emit-llvm %s -o - | grep 'declare i32 @puts' | count 1 &&
|
||||
// RUN: clang-cc -ffreestanding -O2 -emit-llvm %s -o - | grep 'declare i32 @puts' | count 0
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -triple i386-unknown-unknown -emit-llvm -o %t %s &&
|
||||
// RUN: clang-cc -triple i386-unknown-unknown -emit-llvm -o %t %s &&
|
||||
// RUN: grep '@g0 = internal global .struct.s0 <{ i32 3 }>' %t | count 1
|
||||
|
||||
struct s0 {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -emit-llvm %s -o - -O1 -triple=x86_64-gnu-linux | grep "i64 -1"
|
||||
// RUN: clang-cc -emit-llvm %s -o - -O1 -triple=x86_64-gnu-linux | grep "i64 -1"
|
||||
|
||||
// PR3709
|
||||
long long a() { return (long long)(int*)-1;}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -emit-llvm < %s
|
||||
// RUN: clang-cc -emit-llvm < %s
|
||||
|
||||
volatile unsigned char* const __attribute__((address_space(1))) serial_ctrl = 0x02;
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// RUN: clang -emit-llvm < %s | grep '@foo.*global.*addrspace(1)' &&
|
||||
// RUN: clang -emit-llvm < %s | grep '@ban.*global.*addrspace(1)' &&
|
||||
// RUN: clang -emit-llvm < %s | grep 'load.*addrspace(1)' | count 2 &&
|
||||
// RUN: clang -emit-llvm < %s | grep 'load.*addrspace(2).. @A' &&
|
||||
// RUN: clang -emit-llvm < %s | grep 'load.*addrspace(2).. @B'
|
||||
// RUN: clang-cc -emit-llvm < %s | grep '@foo.*global.*addrspace(1)' &&
|
||||
// RUN: clang-cc -emit-llvm < %s | grep '@ban.*global.*addrspace(1)' &&
|
||||
// RUN: clang-cc -emit-llvm < %s | grep 'load.*addrspace(1)' | count 2 &&
|
||||
// RUN: clang-cc -emit-llvm < %s | grep 'load.*addrspace(2).. @A' &&
|
||||
// RUN: clang-cc -emit-llvm < %s | grep 'load.*addrspace(2).. @B'
|
||||
|
||||
int foo __attribute__((address_space(1)));
|
||||
int ban[10] __attribute__((address_space(1)));
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -triple i386-pc-linux-gnu -emit-llvm -o %t %s &&
|
||||
// RUN: clang-cc -triple i386-pc-linux-gnu -emit-llvm -o %t %s &&
|
||||
// RUN: grep '@g0 = common global i32 0' %t &&
|
||||
// RUN: grep '@f1 = alias void ()\* @f0' %t &&
|
||||
// RUN: grep '@g1 = alias i32\* @g0' %t &&
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -emit-llvm < %s | grep "align 16" | count 2
|
||||
// RUN: clang-cc -emit-llvm < %s | grep "align 16" | count 2
|
||||
|
||||
typedef struct __attribute((aligned(16))) {int x[4];} ff;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -triple i386-unknown-unknown -O1 -emit-llvm -o %t %s &&
|
||||
// RUN: clang-cc -triple i386-unknown-unknown -O1 -emit-llvm -o %t %s &&
|
||||
// RUN: grep 'ret i32 4' %t
|
||||
|
||||
enum e0 { E0 };
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -emit-llvm %s -o %t
|
||||
// RUN: clang-cc -emit-llvm %s -o %t
|
||||
|
||||
int f() {
|
||||
int a[2];
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -emit-llvm %s -o %t -arch=i386 &&
|
||||
// RUN: clang-cc -emit-llvm %s -o %t -arch=i386 &&
|
||||
void t1(int len) {
|
||||
__asm__ volatile("" : "=&r"(len), "+&r"(len));
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang %s -emit-llvm -o - > %t1 &&
|
||||
// RUN: clang-cc %s -emit-llvm -o - > %t1 &&
|
||||
// RUN: grep @llvm.atomic.load.add.i32 %t1 &&
|
||||
// RUN: grep @llvm.atomic.load.sub.i32 %t1 &&
|
||||
// RUN: grep @llvm.atomic.load.min.i32 %t1 &&
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -g -emit-llvm -o %t %s &&
|
||||
// RUN: clang-cc -g -emit-llvm -o %t %s &&
|
||||
// RUN: not grep 'call void @llvm.dbg.func.start' %t
|
||||
|
||||
void t1() __attribute__((nodebug));
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -g -emit-llvm -o %t %s &&
|
||||
// RUN: clang-cc -g -emit-llvm -o %t %s &&
|
||||
// RUN: grep 'noinline' %t
|
||||
|
||||
void t1() __attribute__((noinline));
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -emit-llvm -o %t %s &&
|
||||
// RUN: clang-cc -emit-llvm -o %t %s &&
|
||||
// RUN: grep '@llvm.used = .*@g0' %t &&
|
||||
// RUN: grep '@llvm.used = .*@f0' %t &&
|
||||
// RUN: grep '@llvm.used = .*@f1.l0' %t
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang -emit-llvm -o %t %s &&
|
||||
// RUN: clang-cc -emit-llvm -o %t %s &&
|
||||
// RUN: grep 't1.*noreturn' %t &&
|
||||
// RUN: grep 't2.*nounwind' %t &&
|
||||
// RUN: grep 'weak.*t3' %t &&
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
/* Check that we get one load for each simple assign and two for the
|
||||
compound assign (load the old value before the add then load again
|
||||
to store back). Also check that our g0 pattern is good. */
|
||||
// RUN: clang -triple i386-unknown-unknown -O0 -emit-llvm -o %t %s &&
|
||||
// RUN: clang-cc -triple i386-unknown-unknown -O0 -emit-llvm -o %t %s &&
|
||||
// RUN: grep 'load ' %t | count 5 &&
|
||||
// RUN: grep "@g0" %t | count 4 &&
|
||||
|
||||
// Check that we got the right value.
|
||||
// RUN: clang -triple i386-unknown-unknown -O3 -emit-llvm -o %t %s &&
|
||||
// RUN: clang-cc -triple i386-unknown-unknown -O3 -emit-llvm -o %t %s &&
|
||||
// RUN: grep 'load ' %t | count 0 &&
|
||||
// RUN: grep "@g0" %t | count 0
|
||||
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче