mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
Python: CG trace: Don't abuse example dir
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
def func(func_arg):
|
||||
print("func")
|
||||
|
||||
def func2():
|
||||
print("func2")
|
||||
return func_arg()
|
||||
|
||||
func2()
|
||||
|
||||
|
||||
def nop():
|
||||
print("nop")
|
||||
pass
|
||||
|
||||
|
||||
func(nop)
|
||||
|
||||
|
||||
"""
|
||||
Needs handling of LOAD_DEREF. Disassembled bytecode looks like:
|
||||
|
||||
6 8 LOAD_DEREF 0 (func_arg)
|
||||
10 CALL_FUNCTION 0
|
||||
12 RETURN_VALUE
|
||||
"""
|
||||
Reference in New Issue
Block a user