[cfe-commits] r97088 - /cfe/trunk/test/Analysis/unix-fns.c
Ted Kremenek
kremenek at apple.com
Wed Feb 24 17:16:07 PST 2010
Author: kremenek
Date: Wed Feb 24 19:16:07 2010
New Revision: 97088
URL: http://llvm.org/viewvc/llvm-project?rev=97088&view=rev
Log:
Remove test case dependancy on platform headers.
Modified:
cfe/trunk/test/Analysis/unix-fns.c
Modified: cfe/trunk/test/Analysis/unix-fns.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/unix-fns.c?rev=97088&r1=97087&r2=97088&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/unix-fns.c (original)
+++ cfe/trunk/test/Analysis/unix-fns.c Wed Feb 24 19:16:07 2010
@@ -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;
More information about the cfe-commits
mailing list