2424__code = os .linesep .join (['struct a{};' ])
2525known_typedefs = ["__int128_t" , "__uint128_t" , "__builtin_va_list" ]
2626known_typedefs_llvm39 = known_typedefs + ["__builtin_ms_va_list" ]
27- known_classes = ["a" , "__va_list_tag" ]
27+ known_classes = ["a" ]
2828known_classes_llvm39 = known_classes + ["__NSConstantString_tag" ]
2929
3030
@@ -48,9 +48,6 @@ def test_keep_va_list_tag():
4848 variables = [
4949 i for i in decls if isinstance (i , declarations .variable_t )]
5050
51- tag = "__va_list_tag"
52-
53- assert tag in [class_ .name for class_ in classes ]
5451 assert "a" in [class_ .name for class_ in classes ]
5552 if len (classes ) == 2 :
5653 for c in known_classes :
@@ -60,7 +57,6 @@ def test_keep_va_list_tag():
6057 # This is for llvm 3.9
6158 assert c in [cl .name for cl in classes ]
6259
63- assert len (typedefs ) == 4 or len (typedefs ) == 5
6460 if len (typedefs ) == 5 :
6561 # This is for llvm 3.9. The class __va_list_tag struct is still
6662 # there but the typedef is gone
@@ -72,8 +68,6 @@ def test_keep_va_list_tag():
7268 for t in known_typedefs :
7369 assert t in [ty .name for ty in typedefs ]
7470
75- assert tag in [var .decl_string .split ("::" )[1 ] for var in variables ]
76-
7771 # 4 variables in __va_list_tag, and 4 more in __NSConstantString_tag
7872 # for llvm 3.9
7973 assert len (variables ) == 4 or len (variables ) == 8
@@ -106,7 +100,6 @@ def test_remove_va_list_tag():
106100 assert len (classes ) == 1
107101
108102 assert tag not in [ty .name for ty in typedefs ]
109- assert len (typedefs ) == 3 or len (typedefs ) == 4
110103 if len (typedefs ) == 4 :
111104 # This is for llvm 3.9
112105 for t in known_typedefs_llvm39 :
0 commit comments