Skip to content

Commit

Permalink
Add test for non-dropping of pointer with attribute
Browse files Browse the repository at this point in the history
Closes gh-86
  • Loading branch information
inducer committed Nov 26, 2024
1 parent 06bf752 commit 5aac015
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/test_pycparserext.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ def test_asm_label():
assert _round_trip_matches(src)


def test_pointer_with_attr():
# https://github.com/inducer/pycparserext/issues/86
src = "typedef float * __attribute__((abc)) b;"
assert _round_trip_matches(src)


def test_funky_header_code():
src = """
extern __inline int __attribute__ ((__nothrow__)) __signbitf (float __x)
Expand Down

0 comments on commit 5aac015

Please sign in to comment.