about summary refs log tree commit diff
path: root/src/test/compile-fail
diff options
context:
space:
mode:
authorJorge Aparicio <japaricious@gmail.com>2016-12-29 23:28:11 -0500
committerJorge Aparicio <japaricious@gmail.com>2017-02-08 18:51:43 -0500
commit9af6aa38895d3c1d263c52984666893b9ca22fe1 (patch)
tree51de3787fa14cc9ae838d86a366eb5f957c82f58 /src/test/compile-fail
parentc14f87e3b0823407a91a283796bf78ef83d5fe99 (diff)
sanitizer support
Diffstat (limited to 'src/test/compile-fail')
-rw-r--r--src/test/compile-fail/feature-gate-sanitizer-runtime.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/compile-fail/feature-gate-sanitizer-runtime.rs b/src/test/compile-fail/feature-gate-sanitizer-runtime.rs
new file mode 100644
index 00000000000..a18641d8246
--- /dev/null
+++ b/src/test/compile-fail/feature-gate-sanitizer-runtime.rs
@@ -0,0 +1,13 @@
+// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+#![sanitizer_runtime] //~ ERROR the `#[sanitizer_runtime]` attribute is
+
+fn main() {}