summaryrefslogtreecommitdiffstats
path: root/test/Analysis/Inputs
diff options
context:
space:
mode:
Diffstat (limited to 'test/Analysis/Inputs')
-rw-r--r--test/Analysis/Inputs/system-header-simulator-cxx.h6
-rw-r--r--test/Analysis/Inputs/system-header-simulator.h11
2 files changed, 16 insertions, 1 deletions
diff --git a/test/Analysis/Inputs/system-header-simulator-cxx.h b/test/Analysis/Inputs/system-header-simulator-cxx.h
index eee0e31..6e434a0 100644
--- a/test/Analysis/Inputs/system-header-simulator-cxx.h
+++ b/test/Analysis/Inputs/system-header-simulator-cxx.h
@@ -80,6 +80,12 @@ namespace std {
*OI++ = *II++;
return OI;
}
+
+ struct input_iterator_tag { };
+ struct output_iterator_tag { };
+ struct forward_iterator_tag : public input_iterator_tag { };
+ struct bidirectional_iterator_tag : public forward_iterator_tag { };
+ struct random_access_iterator_tag : public bidirectional_iterator_tag { };
}
void* operator new(std::size_t, const std::nothrow_t&) throw();
diff --git a/test/Analysis/Inputs/system-header-simulator.h b/test/Analysis/Inputs/system-header-simulator.h
index 04688c78..dd1cd49 100644
--- a/test/Analysis/Inputs/system-header-simulator.h
+++ b/test/Analysis/Inputs/system-header-simulator.h
@@ -5,6 +5,10 @@
// suppressed.
#pragma clang system_header
+#ifdef __cplusplus
+#define restrict /*restrict*/
+#endif
+
typedef struct _FILE FILE;
extern FILE *stdin;
extern FILE *stdout;
@@ -14,8 +18,11 @@ extern FILE *__stdinp;
extern FILE *__stdoutp;
extern FILE *__stderrp;
-
+int scanf(const char *restrict format, ...);
int fscanf(FILE *restrict, const char *restrict, ...);
+int printf(const char *restrict format, ...);
+int fprintf(FILE *restrict, const char *restrict, ...);
+int getchar(void);
// Note, on some platforms errno macro gets replaced with a function call.
extern int errno;
@@ -37,6 +44,8 @@ typedef __darwin_off_t fpos_t;
void setbuf(FILE * restrict, char * restrict);
int setvbuf(FILE * restrict, char * restrict, int, size_t);
+FILE *fopen(const char * restrict, const char * restrict);
+int fclose(FILE *);
FILE *funopen(const void *,
int (*)(void *, char *, int),
int (*)(void *, const char *, int),
OpenPOWER on IntegriCloud