24
24
__code = os .linesep .join (['struct a{};' ])
25
25
known_typedefs = ["__int128_t" , "__uint128_t" , "__builtin_va_list" ]
26
26
known_typedefs_llvm39 = known_typedefs + ["__builtin_ms_va_list" ]
27
- known_classes = ["a" , "__va_list_tag" ]
27
+ known_classes = ["a" ]
28
28
known_classes_llvm39 = known_classes + ["__NSConstantString_tag" ]
29
29
30
30
@@ -48,9 +48,6 @@ def test_keep_va_list_tag():
48
48
variables = [
49
49
i for i in decls if isinstance (i , declarations .variable_t )]
50
50
51
- tag = "__va_list_tag"
52
-
53
- assert tag in [class_ .name for class_ in classes ]
54
51
assert "a" in [class_ .name for class_ in classes ]
55
52
if len (classes ) == 2 :
56
53
for c in known_classes :
@@ -60,7 +57,6 @@ def test_keep_va_list_tag():
60
57
# This is for llvm 3.9
61
58
assert c in [cl .name for cl in classes ]
62
59
63
- assert len (typedefs ) == 4 or len (typedefs ) == 5
64
60
if len (typedefs ) == 5 :
65
61
# This is for llvm 3.9. The class __va_list_tag struct is still
66
62
# there but the typedef is gone
@@ -72,8 +68,6 @@ def test_keep_va_list_tag():
72
68
for t in known_typedefs :
73
69
assert t in [ty .name for ty in typedefs ]
74
70
75
- assert tag in [var .decl_string .split ("::" )[1 ] for var in variables ]
76
-
77
71
# 4 variables in __va_list_tag, and 4 more in __NSConstantString_tag
78
72
# for llvm 3.9
79
73
assert len (variables ) == 4 or len (variables ) == 8
@@ -106,7 +100,6 @@ def test_remove_va_list_tag():
106
100
assert len (classes ) == 1
107
101
108
102
assert tag not in [ty .name for ty in typedefs ]
109
- assert len (typedefs ) == 3 or len (typedefs ) == 4
110
103
if len (typedefs ) == 4 :
111
104
# This is for llvm 3.9
112
105
for t in known_typedefs_llvm39 :
0 commit comments