Rust: Add test for character literals.

This commit is contained in:
SiegeLord 2014-07-29 10:55:15 -04:00
parent 756344d901
commit cf9385c6d4
2 changed files with 11 additions and 0 deletions

View File

@ -6,6 +6,15 @@ use std::io::stdio::println;
use test_input2::*;
mod test_input2;
fn lifetime_and_char<'lifetime>(_: &'lifetime int)
{
let s = '"';
let s = '}';
let s = '\'';
let s = '\uffff';
fn not_hidden_by_char() {}
}
fn preserve_string_delims(_bar: extern r#"C"# fn()) {}
pub struct A

View File

@ -27,9 +27,11 @@ foo
foo_field_1Ì8ÎFooÖ0
gfuncÌ16Í<X:Testable+DoZ>(x:&X)Ö0
ignoreÌ65536Ö0
lifetime_and_charÌ16Í<'lifetime>(_: &'lifetime int)Ö0
mainÌ16Í()Ö0
my_methodÌ128Í(&self,_:int)ÎFooÖ0
nestedÌ16Í()ÎmainÖ0
not_hidden_by_charÌ16Í()Îlifetime_and_charÖ0
only_fieldÌ8ÎS1Ö0
preserve_string_delimsÌ16Í(_bar: extern r#"C"# fn())Ö0
sizeÌ16384Ö0