diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-07-05 12:38:53 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-07-05 12:43:44 -0700 |
| commit | 8499c77cee3b745dfde576d1dbd03f292ab3c00f (patch) | |
| tree | 6e196eedfa412f629cb2d78b8b3eb26005dce900 /src/test | |
| parent | 10a4737d34e4b5112daaa80455ac671b87006c6b (diff) | |
| download | rust-8499c77cee3b745dfde576d1dbd03f292ab3c00f.tar.gz rust-8499c77cee3b745dfde576d1dbd03f292ab3c00f.zip | |
Parse attributes for native items. Closes #609
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass/item-attributes.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/run-pass/item-attributes.rs b/src/test/run-pass/item-attributes.rs index cf8fc4098f2..c66a41e8d0b 100644 --- a/src/test/run-pass/item-attributes.rs +++ b/src/test/run-pass/item-attributes.rs @@ -192,6 +192,18 @@ mod test_other_forms { } } +mod test_native_items { + native "rust" mod rustrt { + #[attr]; + + #[attr] + type vbuf; + + #[attr] + fn vec_len[T](vec[T] v) -> uint; + } +} + fn main() { } |
