3 #![allow(non_upper_case_globals)]
4 #![allow(non_camel_case_types)]
5 #![allow(improper_ctypes)]
7 // Crate use statements
13 static b: bool = false;
15 static b: bool = true;
20 // This symbol doesn't exist and would be a link error if this
21 // module was codegened
62 // This needs to parse but would fail in typeck. Since it's not in
63 // the current config it should not be typechecked.
70 // Submodules have slightly different code paths than the top-level
71 // module, so let's make sure this jazz works here as well
78 // Since the bogus configuration isn't defined main will just be
79 // parsed, but nothing further will be done with it
86 // Exercise some of the configured items in ways that wouldn't be possible
87 // if they had the bogus definition
95 fn test_in_fn_ctxt() {
109 mod test_foreign_items {
113 pub fn write() -> String;
114 pub fn write() -> String;
119 mod test_use_statements {
129 impl Fooable for Foo {
155 mod nonexistent_file; // Check that unconfigured non-inline modules are not loaded or parsed.