diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2008-11-12 21:19:11 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2008-11-12 21:19:11 +0000 |
commit | 15b7160a178198fe94f9a05a8f2c3e152163ab6b (patch) | |
tree | 366b3a00b3d4024c332dd23a64e97a3de0f6e8b9 /clang/test/Sema/array-init.c | |
parent | ffb31a23a5967c4b156d226e2a6c84693f7cb4e8 (diff) | |
download | bcm5719-llvm-15b7160a178198fe94f9a05a8f2c3e152163ab6b.tar.gz bcm5719-llvm-15b7160a178198fe94f9a05a8f2c3e152163ab6b.zip |
64-bit test fixes.
llvm-svn: 59165
Diffstat (limited to 'clang/test/Sema/array-init.c')
-rw-r--r-- | clang/test/Sema/array-init.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/test/Sema/array-init.c b/clang/test/Sema/array-init.c index bf3d83d2654..9d2a942410a 100644 --- a/clang/test/Sema/array-init.c +++ b/clang/test/Sema/array-init.c @@ -9,7 +9,7 @@ int ary2[] = { x, y, z }; // expected-error{{initializer element is not a compil extern int fileScopeExtern[3] = { 1, 3, 5 }; // expected-warning{{'extern' variable has an initializer}} -static int ary3[] = { 1, "abc", 3, 4 }; // expected-warning{{incompatible pointer to integer conversion initializing 'char [4]', expected 'int'}} +static long ary3[] = { 1, "abc", 3, 4 }; // expected-warning{{incompatible pointer to integer conversion initializing 'char [4]', expected 'long'}} void func() { int x = 1; @@ -48,7 +48,7 @@ void func() { extern int blockScopeExtern[3] = { 1, 3, 5 }; // expected-error{{'extern' variable cannot have an initializer}} - static int x2[3] = { 1.0, "abc" , 5.8 }; // expected-warning{{incompatible pointer to integer conversion initializing 'char [4]', expected 'int'}} + static long x2[3] = { 1.0, "abc" , 5.8 }; // expected-warning{{incompatible pointer to integer conversion initializing 'char [4]', expected 'long'}} } void test() { @@ -225,15 +225,15 @@ int noNamedImplicitCheck[sizeof(noNamedImplicit) == 3 * sizeof(*noNamedImplicit) // ptrs are constant struct soft_segment_descriptor { - int ssd_base; + long ssd_base; }; static int dblfault_tss; union uniao { int ola; } xpto[1]; struct soft_segment_descriptor gdt_segs[] = { - {(int) &dblfault_tss}, - { (int)xpto}, + {(long) &dblfault_tss}, + { (long)xpto}, }; static void sppp_ipv6cp_up(); |