Skip to content

Commit e3f1cdd

Browse files
committed
Add test for non-dropping of pointer with attribute
Closes gh-86
1 parent 06bf752 commit e3f1cdd

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

test/test_pycparserext.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,12 @@ def test_asm_label():
126126
assert _round_trip_matches(src)
127127

128128

129+
def test_pointer_with_attr():
130+
# https://github.com/inducer/pycparserext/issues/86
131+
src = "typedef float * __attribute__((abc)) b;"
132+
assert _round_trip_matches(src)
133+
134+
129135
def test_funky_header_code():
130136
src = """
131137
extern __inline int __attribute__ ((__nothrow__)) __signbitf (float __x)

0 commit comments

Comments
 (0)