mirror of
https://github.com/nanopb/nanopb.git
synced 2026-06-06 20:18:31 +00:00
Get rid of the old AVR simulator extern "C" hack, because clang warns about it. Instead use a weak symbol to resolve the app_main() name when running a C++ main program.
11 lines
429 B
Python
11 lines
429 B
Python
# Test stack usage
|
|
# This test case intentionally performs access outside the legal stack area,
|
|
# so it may have to be skipped to avoid false positives on memory safety tools.
|
|
|
|
Import("env")
|
|
|
|
if not env.get("NOUNSAFE"):
|
|
env.NanopbProto(["stackusage", "stackusage.options"])
|
|
test = env.Program(["stackusage.c", "stackusage.pb.c", "$COMMON/pb_encode.o", "$COMMON/pb_decode.o", "$COMMON/pb_common.o"])
|
|
env.RunTest(test)
|