[cfe-commits] r168675 - /cfe/trunk/test/Sema/pid_t.c

Eli Friedman eli.friedman at gmail.com
Mon Nov 26 18:58:49 PST 2012


Author: efriedma
Date: Mon Nov 26 20:58:49 2012
New Revision: 168675

URL: http://llvm.org/viewvc/llvm-project?rev=168675&view=rev
Log:
Test for r168674.


Added:
    cfe/trunk/test/Sema/pid_t.c

Added: cfe/trunk/test/Sema/pid_t.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/pid_t.c?rev=168675&view=auto
==============================================================================
--- cfe/trunk/test/Sema/pid_t.c (added)
+++ cfe/trunk/test/Sema/pid_t.c Mon Nov 26 20:58:49 2012
@@ -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





More information about the cfe-commits mailing list