Commit d0a8e247 authored by Stefan Behnel's avatar Stefan Behnel

added new failing C++ test for using a stack allocate C++ vector inside of a generator

parent edd10c3b
# mode: run
# tag: cpp
from libcpp.vector cimport vector
def stack_vector_in_generator(vector[int] vint):
"""
>>> tuple( stack_vector_in_generator([1,2]) )
(1, 2)
"""
for i in vint:
yield i
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment