From 6fdc1221c7618b1d1896cb92fb8d3add0a356280 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Tue, 27 Nov 2012 02:58:49 +0000 Subject: [PATCH] Test for r168674. llvm-svn: 168675 --- clang/test/Sema/pid_t.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 clang/test/Sema/pid_t.c diff --git a/clang/test/Sema/pid_t.c b/clang/test/Sema/pid_t.c new file mode 100644 index 0000000..7021e37 --- /dev/null +++ b/clang/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 -- 2.7.4