diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-02-25 01:16:07 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-02-25 01:16:07 +0000 |
commit | fc89323210a5f3f53808f7d801705d6b8c0a4224 (patch) | |
tree | a5c2101395fba5643e5afb387bd11fea23fe9d1e /test/Analysis/unix-fns.c | |
parent | 381d1bf0eeabccac1ba64909cad73d2ee963897b (diff) |
Remove test case dependancy on platform headers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97088 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis/unix-fns.c')
-rw-r--r-- | test/Analysis/unix-fns.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/Analysis/unix-fns.c b/test/Analysis/unix-fns.c index 2bc2efa2d7..777ad19798 100644 --- a/test/Analysis/unix-fns.c +++ b/test/Analysis/unix-fns.c @@ -1,7 +1,11 @@ // RUN: %clang_cc1 -analyze -analyzer-check-objc-mem %s -analyzer-store=region // RUN: %clang_cc1 -analyze -analyzer-check-objc-mem %s -analyzer-store=basic -#include <fcntl.h> +#ifndef O_CREAT +#define O_CREAT 0x0200 +#define O_RDONLY 0x0000 +#endif +int open(const char *, int, ...); void test_open(const char *path) { int fd; |