mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
23 lines
583 B
Python
23 lines
583 B
Python
from trace import *
|
|
enter(__file__)
|
|
|
|
class SOURCE(object):
|
|
@staticmethod
|
|
def block_flow(): pass
|
|
|
|
check("SOURCE", SOURCE, SOURCE, globals()) #$ prints=SOURCE
|
|
|
|
if eval("False"):
|
|
# With our current import resolution, this value for SOURCE will be considered to be
|
|
# a valid value at the end of this module, because it's the end of a use-use flow.
|
|
# This is clearly wrong, so our import resolution is a bit too generous on what is
|
|
# exported
|
|
print(SOURCE)
|
|
raise Exception()
|
|
|
|
SOURCE.block_flow()
|
|
|
|
check("SOURCE", SOURCE, SOURCE, globals())
|
|
|
|
exit(__file__)
|