Skip to content

Commit 0163d6d

Browse files
committed
tests: add a basic test for the time tracer
It's not tested whether the output is valid or sensible, only that the compiler doesn't crash when time tracing is enabled.
1 parent ba5b4af commit 0163d6d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/compilerfeatures/ttimetrace.nim

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
discard """
2+
description: "Make sure some code can be compiled with time-tracing enabled"
3+
targets: "c js vm"
4+
matrix: "--timetrace:on"
5+
"""
6+
7+
# import some modules so that there's some processing for the compiler
8+
# to trace
9+
import std/[strutils, macros]

0 commit comments

Comments
 (0)