This commit is contained in:
Sébastien Debrard 2011-01-31 23:51:13 +01:00
parent f2082a47bc
commit 3e558fdada
1 changed files with 0 additions and 33 deletions

View File

@ -84,7 +84,6 @@ private:
TEST_CASE(sizeof19); // #1891 - sizeof 'x'
TEST_CASE(sizeof20); // #2024 - sizeof a)
TEST_CASE(sizeof21); // #2232 - sizeof...(Args)
TEST_CASE(sizeof22); // #155
TEST_CASE(sizeofsizeof);
TEST_CASE(casting);
@ -851,7 +850,6 @@ private:
" sizeof(*i);\n"
"}\n";
ASSERT_EQUALS("void foo ( ) { int i [ 4 ] ; 16 ; 4 ; }", sizeof_(code));
TODO_ASSERT_EQUALS("void foo ( ) { int i [ 4 ] ; 4 ; 4 ; }", sizeof_(code));
}
void sizeof3()
@ -863,7 +861,6 @@ private:
" sizeof(i);\n"
"}\n";
ASSERT_EQUALS("static int i [ 4 ] ; void f ( ) { int i [ 10 ] ; 40 ; }", sizeof_(code));
TODO_ASSERT_EQUALS("static int i [ 4 ] ; void f ( ) { int i [ 10 ] ; 10 ; }", sizeof_(code));
}
void sizeof4()
@ -1412,36 +1409,6 @@ private:
tok(code);
}
void sizeof22()
{
{
const char code[] = "void foo(int i[10])\n"
"{\n"
" sizeof(i);\n"
" sizeof(*i);\n"
"}\n";
TODO_ASSERT_EQUALS("void foo ( ) { sizeof ( i ) ; 4 ; }", sizeof_(code));
}
{
const char code[] = "void foo(int i[])\n"
"{\n"
" sizeof(i);\n"
" sizeof(*i);\n"
"}\n";
TODO_ASSERT_EQUALS("void foo ( ) { sizeof ( i ) ; 4 ; }", sizeof_(code));
}
{
const char code[] = "void foo(int i[])\n"
"{\n"
" sizeof i;\n"
" sizeof(*i);\n"
"}\n";
TODO_ASSERT_EQUALS("void foo ( ) { sizeof ( i ) ; 4 ; }", sizeof_(code));
}
}
void sizeofsizeof()
{