Test #pragma nodestruct
This commit is contained in:
parent
4dd38ffd82
commit
351d0086ad
6
source/compiler/tests/gh_258.meta
Normal file
6
source/compiler/tests/gh_258.meta
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
'test_type': 'output_check',
|
||||||
|
'errors': """
|
||||||
|
gh_258.pwn(11) : warning 203: symbol is never used: "operator~(Tag:)"
|
||||||
|
"""
|
||||||
|
}
|
9
source/compiler/tests/gh_258.pwn
Normal file
9
source/compiler/tests/gh_258.pwn
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
operator~(Tag:var[], size) {
|
||||||
|
}
|
||||||
|
|
||||||
|
main() {
|
||||||
|
new Tag:a;
|
||||||
|
#pragma unused a
|
||||||
|
#pragma nodestruct a
|
||||||
|
}
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user