summary refs log tree commit diff stats
path: root/tests/cpp/tthread_createthread.nim
Commit message (Collapse)AuthorAgeFilesLines
* use targets from test spec when running testament tests (#6687)Jacek Sieka2017-11-151-0/+1
|
* Fix a few deprecation warningsdef2016-01-251-1/+1
|
* tests: Trim .nim files trailing whitespaceAdam Strzelecki2015-09-041-1/+1
| | | | via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
* Add test for fix in f8d6d74368ea14403d1d455db30b669750e71651.Philip Wernersbach2015-03-151-0/+14
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25


                
                                                         




             
 














                     
discard """
  exitcode: 1
  outputsub: '''
    tunittesttemplate.nim(20, 12): Check failed: a.b == 2
    a.b was 0
  [FAILED] 1
'''
"""


# bug #6736

import unittest

type
  A = object
    b: int

template t: untyped =
  check(a.b == 2)

suite "1":
  test "1":
    var a = A(b: 0)
    t()