Don't depend on system headers in clang -cc1 tests.

The constant was copied from clang's limits.h.

llvm-svn: 106732
This commit is contained in:
Benjamin Kramer 2010-06-24 11:06:12 +00:00
parent e2f482ca0b
commit 322ab26387
2 changed files with 2 additions and 2 deletions

View File

@ -1,11 +1,11 @@
// RUN: %clang_cc1 -analyze -analyzer-check-objc-mem -analyzer-experimental-checks -verify -analyzer-constraints=range %s
#include <limits.h>
// These are used to trigger warnings.
typedef typeof(sizeof(int)) size_t;
void *malloc(size_t);
void free(void *);
#define NULL ((void*)0)
#define UINT_MAX (__INT_MAX__ *2U +1U)
// Each of these adjusted ranges has an adjustment small enough to split the
// solution range across an overflow boundary (Min for <, Max for >).

View File

@ -1,12 +1,12 @@
// RUN: %clang_cc1 -analyze -analyzer-check-objc-mem -analyzer-experimental-checks -verify -analyzer-constraints=basic %s
// RUN: %clang_cc1 -analyze -analyzer-check-objc-mem -analyzer-experimental-checks -verify -analyzer-constraints=range %s
#include <limits.h>
// These are used to trigger warnings.
typedef typeof(sizeof(int)) size_t;
void *malloc(size_t);
void free(void *);
#define NULL ((void*)0)
#define UINT_MAX -1U
//---------------
// Plus/minus