14 lines
264 B
Plaintext
14 lines
264 B
Plaintext
# @TEST-REQUIRES: test "$BUILD" = "debug"
|
|
# @TEST-EXEC-FAIL: ${HILTIC} -X location -j %INPUT >output 2>&1
|
|
# @TEST-EXEC: btest-diff output
|
|
|
|
module Foo {
|
|
|
|
global auto x = b"xyz";
|
|
global auto i = begin(x);
|
|
assert *i == 'x';
|
|
x = b"";
|
|
assert *i == 'x'; # will throw
|
|
|
|
}
|