diff options
Diffstat (limited to 'test/Sema/pid_t.c')
-rw-r--r-- | test/Sema/pid_t.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Sema/pid_t.c b/test/Sema/pid_t.c new file mode 100644 index 0000000..7021e37 --- /dev/null +++ b/test/Sema/pid_t.c @@ -0,0 +1,11 @@ +// RUN: %clang_cc1 -triple i586-pc-haiku -fsyntax-only -verify %s +// RUN: %clang_cc1 -triple i686-pc-linux -fsyntax-only -verify %s + +// expected-no-diagnostics + +#ifdef __HAIKU__ +typedef signed long pid_t; +#else +typedef signed int pid_t; +#endif +pid_t vfork(void);
\ No newline at end of file |