Fix test so it works on systems where wchar_t != int.
authorDale Johannesen <dalej@apple.com>
Wed, 15 Jul 2009 20:40:53 +0000 (20:40 +0000)
committerDale Johannesen <dalej@apple.com>
Wed, 15 Jul 2009 20:40:53 +0000 (20:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75827 91177308-0d34-0410-b5e6-96231b3b80d8

test/FrontendC/2009-07-15-pad-wchar_t-array.c

index ef47f771faee674bd7ad074131f2a4d594f20a3f..839a7bb5cbff80b06a738403dfbc9b91a44a1d14 100644 (file)
@@ -1,15 +1,7 @@
 // RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
 
-typedef int __darwin_wchar_t;
-typedef __darwin_wchar_t wchar_t;
-typedef signed short SQLSMALLINT;
-typedef SQLSMALLINT SQLRETURN;
-typedef enum
-  {
-    en_sqlstat_total
-  }
-  sqlerrmsg_t;
-SQLRETURN _iodbcdm_sqlerror( )
+#include <stddef.h>
+signed short _iodbcdm_sqlerror( )
 {
   wchar_t _sqlState[6] = { L"\0" };
 }