]> granicus.if.org Git - clang/commitdiff
Use our new snazzy stdint.h to make a testcase 64-bit portable.
authorSebastian Redl <sebastian.redl@getdesigned.at>
Sat, 7 Feb 2009 00:23:52 +0000 (00:23 +0000)
committerSebastian Redl <sebastian.redl@getdesigned.at>
Sat, 7 Feb 2009 00:23:52 +0000 (00:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63985 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/init.c

index 3c8f3fe134903cb273a9fbd238ae5fc5adc4ab1d..900749f119e442a8b01c25f5acdb7abffc7f2f78 100644 (file)
@@ -1,5 +1,7 @@
 // RUN: clang %s -verify -fsyntax-only
 
+#include <stdint.h>
+
 typedef void (* fp)(void);
 void foo(void);
 
@@ -104,5 +106,5 @@ struct foo2 {
 };
 
 struct foo2 bar2[] = {
-   { (int)bbb }
+   { (intptr_t)bbb }
 };